org.eclipse.emf.importer
Class ModelImporterApplication
java.lang.Object
org.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ModelImporterApplication
public ModelImporterApplication()
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.