org.eclipse.emf.codegen.ecore
Class Generator

java.lang.Object
  extended byorg.eclipse.emf.codegen.CodeGen
      extended byorg.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.


Nested Class Summary
static class Generator.PlatformRunnable
           
 
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_TESTS_PROJECT_STYLE
           
static int EMF_XML_PROJECT_STYLE
           
 
Constructor Summary
Generator()
           
 
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 org.eclipse.emf.codegen.CodeGen
addClasspathEntries, addClasspathEntries, findOrCreateContainer, findOrCreateContainer, getClasspathPaths
 
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

EMF_TESTS_PROJECT_STYLE

public static int EMF_TESTS_PROJECT_STYLE
Constructor Detail

Generator

public Generator()
Method Detail

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)

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