org.eclipse.emf.codegen.ecore
Class Generator

java.lang.Object
  extended byorg.eclipse.emf.codegen.CodeGen
      extended byorg.eclipse.emf.codegen.ecore.Generator
All Implemented Interfaces:
IPlatformRunnable
Direct Known Subclasses:
Rose2GenModel, XSD2GenModel

public class Generator
extends CodeGen

This implements the method run(java.lang.Object), which is called just like main during headless workbench invocation.


Nested Class Summary
 
Nested classes inherited from class org.eclipse.emf.codegen.CodeGen
CodeGen.StreamProgressMonitor
 
Field Summary
protected  String basePackage
           
static int EMF_EDIT_PROJECT_STYLE
           
static int EMF_EDITOR_PROJECT_STYLE
           
static int EMF_EMPTY_PROJECT_STYLE
           
static int EMF_MODEL_PROJECT_STYLE
           
static int EMF_PLUGIN_PROJECT_STYLE
           
static int EMF_XML_PROJECT_STYLE
           
 
Fields inherited from interface org.eclipse.core.runtime.IPlatformRunnable
EXIT_OK, EXIT_RELAUNCH, EXIT_RESTART
 
Constructor Summary
Generator()
          This creates an instance.
 
Method Summary
static void addClasspathEntries(Collection classpathEntries, String pluginID)
           
static void addClasspathEntries(Collection classpathEntries, String variableName, String pluginID)
           
static IProject createEMFProject(IPath javaSource, IPath projectLocationPath, List referencedProjects, IProgressMonitor progressMonitor, int style)
           
static IProject createEMFProject(IPath javaSource, IPath projectLocationPath, List referencedProjects, IProgressMonitor progressMonitor, int style, List pluginVariables)
           
protected  String findOrCreateContainerHelper(String rootLocation, String encodedPath, IProgressMonitor progressMonitor)
           
static void main(String[] args)
          This supports a non-headless invocation.
 void printGenerateUsage()
           
 void printStatus(String prefix, IStatus status)
           
 Object run(Object object)
          This is called with the command line arguments of a headless workbench invocation.
static void setSDODefaults(GenModel genModel)
           
static String validName(String name)
           
 
Methods inherited from class org.eclipse.emf.codegen.CodeGen
findOrCreateContainer, findOrCreateContainer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

basePackage

protected String basePackage

EMF_MODEL_PROJECT_STYLE

public static int EMF_MODEL_PROJECT_STYLE

EMF_EDIT_PROJECT_STYLE

public static int EMF_EDIT_PROJECT_STYLE

EMF_EDITOR_PROJECT_STYLE

public static int EMF_EDITOR_PROJECT_STYLE

EMF_XML_PROJECT_STYLE

public static int EMF_XML_PROJECT_STYLE

EMF_PLUGIN_PROJECT_STYLE

public static int EMF_PLUGIN_PROJECT_STYLE

EMF_EMPTY_PROJECT_STYLE

public static int EMF_EMPTY_PROJECT_STYLE
Constructor Detail

Generator

public Generator()
This creates an instance.

Method Detail

main

public static void main(String[] args)
This supports a non-headless invocation. The variable VABASE or ECLIPSE.


printGenerateUsage

public void printGenerateUsage()

run

public Object run(Object object)
This is called with the command line arguments of a headless workbench invocation.

Specified by:
run in interface IPlatformRunnable
Overrides:
run in class CodeGen

findOrCreateContainerHelper

protected String findOrCreateContainerHelper(String rootLocation,
                                             String encodedPath,
                                             IProgressMonitor progressMonitor)
                                      throws CoreException
Throws:
CoreException

createEMFProject

public static IProject createEMFProject(IPath javaSource,
                                        IPath projectLocationPath,
                                        List referencedProjects,
                                        IProgressMonitor progressMonitor,
                                        int style)

createEMFProject

public static IProject createEMFProject(IPath javaSource,
                                        IPath projectLocationPath,
                                        List referencedProjects,
                                        IProgressMonitor progressMonitor,
                                        int style,
                                        List pluginVariables)

addClasspathEntries

public static void addClasspathEntries(Collection classpathEntries,
                                       String pluginID)
                                throws Exception
Throws:
Exception

addClasspathEntries

public static void addClasspathEntries(Collection classpathEntries,
                                       String variableName,
                                       String pluginID)
                                throws Exception
Throws:
Exception

printStatus

public void printStatus(String prefix,
                        IStatus status)

validName

public static String validName(String name)

setSDODefaults

public static void setSDODefaults(GenModel genModel)

Copyright 2001-2004 IBM Corporation and others.
All Rights Reserved.