org.eclipse.emf.codegen
Class CodeGen

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

public class CodeGen
extends Object
implements IPlatformRunnable

This class implements some reusable static utility methods. It also implements the method run(java.lang.Object), which is called just like main during headless workbench invocation.


Nested Class Summary
static class CodeGen.StreamProgressMonitor
          Deprecated. As of EMF 2.1.0, moved to CodeGenUtil.
 
Field Summary
 
Fields inherited from interface org.eclipse.core.runtime.IPlatformRunnable
EXIT_OK, EXIT_RELAUNCH, EXIT_RESTART
 
Constructor Summary
CodeGen()
           
 
Method Summary
static void addClasspathEntries(Collection classpathEntries, String pluginID)
          Deprecated. As of EMF 2.1.0, moved to CodeGenUtil.
static void addClasspathEntries(Collection classpathEntries, String variableName, String pluginID)
          Deprecated. As of EMF 2.1.0, moved to CodeGenUtil.
static IContainer findOrCreateContainer(IPath path, boolean forceRefresh, IPath localLocation, IProgressMonitor progressMonitor)
          Deprecated. As of EMF 2.1.0, moved to CodeGenUtil.
static IContainer findOrCreateContainer(IPath path, boolean forceRefresh, IProjectDescription projectDescription, IProgressMonitor progressMonitor)
          Deprecated. As of EMF 2.1.0, moved to CodeGenUtil.
static List getClasspathPaths(String pluginID)
          Deprecated. As of EMF 2.1.0, moved to CodeGenUtil.
 Object run(Object object)
          This is called with the command line arguments of a headless workbench invocation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeGen

public CodeGen()
Method Detail

findOrCreateContainer

public static IContainer findOrCreateContainer(IPath path,
                                               boolean forceRefresh,
                                               IPath localLocation,
                                               IProgressMonitor progressMonitor)
                                        throws CoreException
Deprecated. As of EMF 2.1.0, moved to CodeGenUtil.

Throws:
CoreException

findOrCreateContainer

public static IContainer findOrCreateContainer(IPath path,
                                               boolean forceRefresh,
                                               IProjectDescription projectDescription,
                                               IProgressMonitor progressMonitor)
                                        throws CoreException
Deprecated. As of EMF 2.1.0, moved to CodeGenUtil.

Throws:
CoreException

getClasspathPaths

public static List getClasspathPaths(String pluginID)
                              throws JETException
Deprecated. As of EMF 2.1.0, moved to CodeGenUtil.

Throws:
JETException

addClasspathEntries

public static void addClasspathEntries(Collection classpathEntries,
                                       String variableName,
                                       String pluginID)
                                throws JETException
Deprecated. As of EMF 2.1.0, moved to CodeGenUtil.

Throws:
JETException

addClasspathEntries

public static void addClasspathEntries(Collection classpathEntries,
                                       String pluginID)
                                throws Exception
Deprecated. As of EMF 2.1.0, moved to CodeGenUtil.

Throws:
Exception

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

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