public class DefineProfileApplication
extends java.lang.Object
implements org.eclipse.equinox.app.IApplication
An Equinox application that accepts file paths for local UML profiles to define, and options for the Profile-to-EPackage conversion, and converts each profile using the given options and saves them in situ.
Invoke the application without any arguments, or just with -help, for a usage message.
Modifier and Type | Field and Description |
---|---|
protected static java.lang.Integer |
EXIT_FAILURE |
protected java.util.Map<java.lang.String,java.lang.String> |
profileDefinitionOptions |
protected java.util.List<org.eclipse.emf.common.util.URI> |
profileURIs |
protected IDiagnosticReporter |
reporter |
Constructor and Description |
---|
DefineProfileApplication() |
DefineProfileApplication(IDiagnosticReporter reporter) |
Modifier and Type | Method and Description |
---|---|
protected void |
defineProfile(org.eclipse.emf.ecore.resource.ResourceSet rset,
org.eclipse.emf.common.util.URI profileURI) |
void |
execute(org.eclipse.emf.common.util.Monitor monitor) |
protected java.lang.String |
getUsage() |
protected void |
handleUnrecognizedArgument(java.lang.String argument) |
protected boolean |
isProfileDefinitionOption(java.lang.String key) |
void |
printUsage() |
protected int |
processArgument(java.lang.String[] arguments,
int index) |
protected void |
processArguments(java.lang.String[] arguments) |
protected int |
processModelPaths(java.lang.String[] arguments,
int index) |
void |
run(org.eclipse.core.runtime.IProgressMonitor progressMonitor,
java.lang.String[] arguments) |
void |
run(org.eclipse.emf.common.util.Monitor monitor,
java.lang.String[] arguments) |
java.lang.Object |
run(java.lang.String[] args) |
java.lang.Object |
start(org.eclipse.equinox.app.IApplicationContext context) |
void |
stop() |
protected static final java.lang.Integer EXIT_FAILURE
protected final IDiagnosticReporter reporter
protected java.util.List<org.eclipse.emf.common.util.URI> profileURIs
protected java.util.Map<java.lang.String,java.lang.String> profileDefinitionOptions
public DefineProfileApplication()
public DefineProfileApplication(IDiagnosticReporter reporter)
public java.lang.Object start(org.eclipse.equinox.app.IApplicationContext context) throws java.lang.Exception
start
in interface org.eclipse.equinox.app.IApplication
java.lang.Exception
public void stop()
stop
in interface org.eclipse.equinox.app.IApplication
public java.lang.Object run(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public void run(org.eclipse.core.runtime.IProgressMonitor progressMonitor, java.lang.String[] arguments) throws java.lang.Exception
java.lang.Exception
public void run(org.eclipse.emf.common.util.Monitor monitor, java.lang.String[] arguments) throws java.lang.Exception
java.lang.Exception
public void execute(org.eclipse.emf.common.util.Monitor monitor) throws java.lang.Exception
java.lang.Exception
protected void defineProfile(org.eclipse.emf.ecore.resource.ResourceSet rset, org.eclipse.emf.common.util.URI profileURI) throws java.lang.Exception
java.lang.Exception
public void printUsage()
protected java.lang.String getUsage()
protected void processArguments(java.lang.String[] arguments)
protected int processModelPaths(java.lang.String[] arguments, int index)
protected int processArgument(java.lang.String[] arguments, int index)
protected boolean isProfileDefinitionOption(java.lang.String key)
protected void handleUnrecognizedArgument(java.lang.String argument)