org.eclipse.emf.codegen.ecore
Class Generator
java.lang.Object
org.eclipse.emf.codegen.CodeGen
org.eclipse.emf.codegen.ecore.Generator
- Direct Known Subclasses:
- Generator.PlatformRunnable
- public class Generator
- extends CodeGen
This implements the method run(java.lang.Object)
,
which is called just like main during headless workbench invocation.
Method Summary |
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)
|
static IProject |
createEMFProject(IPath javaSource,
IPath projectLocationPath,
List referencedProjects,
Monitor progressMonitor,
int style)
|
static IProject |
createEMFProject(IPath javaSource,
IPath projectLocationPath,
List referencedProjects,
Monitor progressMonitor,
int style,
List pluginVariables)
|
protected String |
findOrCreateContainerHelper(String rootLocation,
String encodedPath,
Monitor progressMonitor)
|
static void |
main(String[] args)
Deprecated. It is not possible to generate code withtout using Eclipse. If
you are invoking this method, you should instantiate a Generator and call
run(Object) . This method will be removed in a future release. |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
EMF_TESTS_PROJECT_STYLE
public static int EMF_TESTS_PROJECT_STYLE
Generator
public Generator()
main
public static void main(String[] args)
- Deprecated. It is not possible to generate code withtout using Eclipse. If
you are invoking this method, you should instantiate a Generator and call
run(Object)
. This method will be removed in a future release.
- 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.
- Overrides:
run
in class CodeGen
findOrCreateContainerHelper
protected String findOrCreateContainerHelper(String rootLocation,
String encodedPath,
Monitor 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)
createEMFProject
public static IProject createEMFProject(IPath javaSource,
IPath projectLocationPath,
List referencedProjects,
Monitor progressMonitor,
int style)
createEMFProject
public static IProject createEMFProject(IPath javaSource,
IPath projectLocationPath,
List referencedProjects,
Monitor progressMonitor,
int style,
List pluginVariables)
printStatus
public void printStatus(String prefix,
IStatus status)
setSDODefaults
public static void setSDODefaults(GenModel genModel)