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
          This is a progress monitor that prints the progress information to a stream.
 
Field Summary
 
Fields inherited from interface org.eclipse.core.runtime.IPlatformRunnable
EXIT_OK, EXIT_RELAUNCH, EXIT_RESTART
 
Constructor Summary
CodeGen()
          This creates an instance.
 
Method Summary
static IContainer findOrCreateContainer(IPath path, boolean forceRefresh, IPath localLocation, IProgressMonitor progressMonitor)
           
static IContainer findOrCreateContainer(IPath path, boolean forceRefresh, IProjectDescription projectDescription, IProgressMonitor progressMonitor)
           
 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()
This creates an instance.

Method Detail

findOrCreateContainer

public static IContainer findOrCreateContainer(IPath path,
                                               boolean forceRefresh,
                                               IPath localLocation,
                                               IProgressMonitor progressMonitor)
                                        throws CoreException
Throws:
CoreException

findOrCreateContainer

public static IContainer findOrCreateContainer(IPath path,
                                               boolean forceRefresh,
                                               IProjectDescription projectDescription,
                                               IProgressMonitor progressMonitor)
                                        throws CoreException
Throws:
CoreException

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.