org.eclipse.emf.importer
Class ModelImporterApplication

java.lang.Object
  extended byorg.eclipse.emf.importer.ModelImporterApplication
All Implemented Interfaces:
IPlatformRunnable
Direct Known Subclasses:
EcoreImporterApplication, RoseImporterApplication

public abstract class ModelImporterApplication
extends Object
implements IPlatformRunnable

Since:
2.1.0

Field Summary
protected  String copyright
           
protected  IPath editFragmentPath
           
protected  IPath editorFragmentPath
           
protected  IPath editorProjectLocationPath
           
protected  IPath editProjectLocationPath
           
protected  IPath genModelFullPath
           
protected  IPath modelFragmentPath
           
protected  ModelImporter modelImporter
           
protected  String modelLocations
           
protected  String modelPluginID
           
protected  IPath modelProjectLocationPath
           
protected static String NL
           
protected  boolean quiet
           
protected  List referencedEPackages
           
protected  Map referencedGenModelURIToEPackageNSURIs
           
protected  boolean reload
           
protected  boolean sdo
           
protected  String templatePath
           
protected  IPath testsFragmentPath
           
protected  IPath testsProjectLocationPath
           
 
Fields inherited from interface org.eclipse.core.runtime.IPlatformRunnable
EXIT_OK, EXIT_RELAUNCH, EXIT_RESTART
 
Constructor Summary
ModelImporterApplication()
           
 
Method Summary
protected  void adjustAttributes(Monitor monitor)
           
protected  void adjustEPackages(Monitor monitor)
           
protected  void adjustGenModel(Monitor monitor)
           
protected  void adjustModelImporter(Monitor monitor)
           
protected  StringBuffer appendLine(StringBuffer buffer, String line)
           
protected  void computeEPackages(Monitor monitor)
           
protected abstract  ModelImporter createModelImporter()
           
protected  void doExecute(Monitor monitor)
           
 void execute(Monitor monitor)
           
 ModelImporter getModelImporter()
           
protected  IProgressMonitor getProgressMonitor()
           
protected abstract  StringBuffer getUsage()
           
protected  void handleEPackage(EPackage ePackage, boolean generate)
           
protected  void handleGenModelPath(IPath genModelFullPath)
           
protected  void handleQualifiedEPackageName(EPackage ePackage)
           
protected  void handleReferencedEPackages()
          Handles the referencedEPackages contributed by the -refPackage argument option.
protected  void handleUnrecognizedArgument(String argument)
           
 void printUsage()
           
protected  int processArgument(String[] arguments, int index)
           
protected  void processArguments(String[] arguments, int index)
           
protected  int processModelAndGenModelLocationArguments(String[] arguments, int index)
           
 void run(IProgressMonitor progressMonitor, String[] arguments)
           
 void run(Monitor monitor, String[] arguments)
           
 Object run(Object args)
           
protected  void setSDODefaults(GenModel genModel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modelImporter

protected ModelImporter modelImporter

modelLocations

protected String modelLocations

genModelFullPath

protected IPath genModelFullPath

reload

protected boolean reload

modelProjectLocationPath

protected IPath modelProjectLocationPath

modelFragmentPath

protected IPath modelFragmentPath

editProjectLocationPath

protected IPath editProjectLocationPath

editFragmentPath

protected IPath editFragmentPath

editorProjectLocationPath

protected IPath editorProjectLocationPath

editorFragmentPath

protected IPath editorFragmentPath

testsProjectLocationPath

protected IPath testsProjectLocationPath

testsFragmentPath

protected IPath testsFragmentPath

templatePath

protected String templatePath

copyright

protected String copyright

sdo

protected boolean sdo

modelPluginID

protected String modelPluginID

referencedEPackages

protected List referencedEPackages

referencedGenModelURIToEPackageNSURIs

protected Map referencedGenModelURIToEPackageNSURIs

quiet

protected boolean quiet

NL

protected static final String NL
Constructor Detail

ModelImporterApplication

public ModelImporterApplication()
Method Detail

getModelImporter

public ModelImporter getModelImporter()

createModelImporter

protected abstract ModelImporter createModelImporter()

run

public Object run(Object args)
           throws Exception
Specified by:
run in interface IPlatformRunnable
Throws:
Exception

getProgressMonitor

protected IProgressMonitor getProgressMonitor()

run

public void run(IProgressMonitor progressMonitor,
                String[] arguments)
         throws Exception
Throws:
Exception

run

public void run(Monitor monitor,
                String[] arguments)
         throws Exception
Throws:
Exception

printUsage

public void printUsage()

getUsage

protected abstract StringBuffer getUsage()

appendLine

protected StringBuffer appendLine(StringBuffer buffer,
                                  String line)

execute

public void execute(Monitor monitor)
             throws Exception
Throws:
Exception

processArguments

protected void processArguments(String[] arguments,
                                int index)

processModelAndGenModelLocationArguments

protected int processModelAndGenModelLocationArguments(String[] arguments,
                                                       int index)

processArgument

protected int processArgument(String[] arguments,
                              int index)

handleUnrecognizedArgument

protected void handleUnrecognizedArgument(String argument)

adjustAttributes

protected void adjustAttributes(Monitor monitor)

adjustModelImporter

protected void adjustModelImporter(Monitor monitor)

handleGenModelPath

protected void handleGenModelPath(IPath genModelFullPath)

computeEPackages

protected final void computeEPackages(Monitor monitor)
                               throws Exception
Throws:
Exception

adjustEPackages

protected void adjustEPackages(Monitor monitor)

handleQualifiedEPackageName

protected void handleQualifiedEPackageName(EPackage ePackage)

handleEPackage

protected void handleEPackage(EPackage ePackage,
                              boolean generate)

adjustGenModel

protected void adjustGenModel(Monitor monitor)

setSDODefaults

protected void setSDODefaults(GenModel genModel)

doExecute

protected void doExecute(Monitor monitor)
                  throws Exception
Throws:
Exception

handleReferencedEPackages

protected void handleReferencedEPackages()
Handles the referencedEPackages contributed by the -refPackage argument option.


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