org.eclipse.emf.codegen.ecore
Class Generator

java.lang.Object
  |
  +--org.eclipse.emf.codegen.CodeGen
        |
        +--org.eclipse.emf.codegen.ecore.Generator
All Implemented Interfaces:
org.eclipse.core.boot.IPlatformRunnable
Direct Known Subclasses:
Rose2GenModel

public class Generator
extends CodeGen

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


Inner classes inherited from class org.eclipse.emf.codegen.CodeGen
CodeGen.StreamProgressMonitor
 
Field Summary
protected  java.lang.String basePackage
           
static int EMF_EDIT_PROJECT_STYLE
           
static int EMF_EDITOR_PROJECT_STYLE
           
static int EMF_MODEL_PROJECT_STYLE
           
static int EMF_XML_PROJECT_STYLE
           
 
Fields inherited from interface org.eclipse.core.boot.IPlatformRunnable
EXIT_OK, EXIT_RESTART
 
Constructor Summary
Generator()
          This creates an instance.
 
Method Summary
static void addClasspathEntries(java.util.Collection classpathEntries, java.lang.String pluginID)
           
static void addClasspathEntries(java.util.Collection classpathEntries, java.lang.String variableName, java.lang.String pluginID)
           
static org.eclipse.core.resources.IProject createEMFProject(org.eclipse.core.runtime.IPath javaSource, org.eclipse.core.runtime.IPath projectLocationPath, java.util.List referencedProjects, org.eclipse.core.runtime.IProgressMonitor progressMonitor, int style)
           
protected  java.lang.String findOrCreateContainerHelper(java.lang.String rootLocation, java.lang.String encodedPath, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
           
static void main(java.lang.String[] args)
          This supports a non-headless invocation.
 void printGenerateUsage()
           
 void printStatus(java.lang.String prefix, org.eclipse.core.runtime.IStatus status)
           
 java.lang.Object run(java.lang.Object object)
          This is called with the command line arguments of a headless workbench invocation.
static java.lang.String validName(java.lang.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 java.lang.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
Constructor Detail

Generator

public Generator()
This creates an instance.
Method Detail

main

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

printGenerateUsage

public void printGenerateUsage()

run

public java.lang.Object run(java.lang.Object object)
This is called with the command line arguments of a headless workbench invocation.
Overrides:
run in class CodeGen

findOrCreateContainerHelper

protected java.lang.String findOrCreateContainerHelper(java.lang.String rootLocation,
                                                       java.lang.String encodedPath,
                                                       org.eclipse.core.runtime.IProgressMonitor progressMonitor)
                                                throws org.eclipse.core.runtime.CoreException

createEMFProject

public static org.eclipse.core.resources.IProject createEMFProject(org.eclipse.core.runtime.IPath javaSource,
                                                                   org.eclipse.core.runtime.IPath projectLocationPath,
                                                                   java.util.List referencedProjects,
                                                                   org.eclipse.core.runtime.IProgressMonitor progressMonitor,
                                                                   int style)

addClasspathEntries

public static void addClasspathEntries(java.util.Collection classpathEntries,
                                       java.lang.String pluginID)
                                throws java.lang.Exception

addClasspathEntries

public static void addClasspathEntries(java.util.Collection classpathEntries,
                                       java.lang.String variableName,
                                       java.lang.String pluginID)
                                throws java.lang.Exception

printStatus

public void printStatus(java.lang.String prefix,
                        org.eclipse.core.runtime.IStatus status)

validName

public static java.lang.String validName(java.lang.String name)

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