|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sei.osate.ui.actions.AbstractAaxlAction
edu.cmu.sei.osate.ui.actions.AaxlReadOnlyActionAsJob
edu.cmu.sei.osate.ui.actions.AbstractInstanceOrDeclarativeModelReadOnlyAction
public abstract class AbstractInstanceOrDeclarativeModelReadOnlyAction
Constructor Summary | |
---|---|
protected |
AbstractInstanceOrDeclarativeModelReadOnlyAction()
|
Method Summary | |
---|---|
protected abstract void |
analyzeDeclarativeModel(org.eclipse.core.runtime.IProgressMonitor monitor,
AnalysisErrorReporterManager errManager,
AObject declarativeObject)
Analyze the model starting from a declarative model element. |
protected boolean |
analyzeInSingleModeOnly()
Should instance models be analyzed in a single mode only? |
protected abstract void |
analyzeInstanceModel(org.eclipse.core.runtime.IProgressMonitor monitor,
AnalysisErrorReporterManager errManager,
SystemInstance root,
SystemOperationMode som)
Analyze a system instance model in a particular system operation mode. |
void |
doAaxlAction(org.eclipse.core.runtime.IProgressMonitor monitor,
AObject obj)
This method will be defined by the ultimate subclass, and implements the true body of the action. |
protected boolean |
initializeAnalysis()
Initialize the state of analysis. |
Methods inherited from class edu.cmu.sei.osate.ui.actions.AaxlReadOnlyActionAsJob |
---|
createJob, getActionName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractInstanceOrDeclarativeModelReadOnlyAction()
Method Detail |
---|
protected boolean analyzeInSingleModeOnly()
true
, then the user is not allowed to choose
to analyze the model in all modes.
The default implementation returns false
.
public final void doAaxlAction(org.eclipse.core.runtime.IProgressMonitor monitor, AObject obj)
AbstractAaxlAction
AbstractAaxlAction.run(IAction)
method, which first makes sure the OSATE
environment is loaded and other house cleaning things.
It is a good idea, although not required, for the action to check to see
if the action has been cancelled
.
If cancellation is detected, this method should throw the unchecked
exception OperationCanceledException
.
doAaxlAction
in class AbstractAaxlAction
monitor
- The progress monitor to use to provide feedback about the
action and to check for cancellation.obj
- The currently selected AObject in the workspace.protected boolean initializeAnalysis()
analyzeDeclarativeModel(org.eclipse.core.runtime.IProgressMonitor, edu.cmu.sei.aadl.model.pluginsupport.AnalysisErrorReporterManager, edu.cmu.sei.aadl.model.core.AObject)
and analyzeInstanceModel(org.eclipse.core.runtime.IProgressMonitor, edu.cmu.sei.aadl.model.pluginsupport.AnalysisErrorReporterManager, edu.cmu.sei.aadl.model.instance.SystemInstance, edu.cmu.sei.aadl.model.instance.SystemOperationMode)
.
The default implementation of this method simply returns
true
.
true
if the analysis should proceed or
false
if the user cancelled the analysis.protected abstract void analyzeDeclarativeModel(org.eclipse.core.runtime.IProgressMonitor monitor, AnalysisErrorReporterManager errManager, AObject declarativeObject)
monitor
- The progress monitor to use.errManager
- The error manager to use. This is the same as error
manager that AbstractAaxlAction.getErrorManager()
returns. It is provided here
as a convenience.declarativeObject
- The declarative object.protected abstract void analyzeInstanceModel(org.eclipse.core.runtime.IProgressMonitor monitor, AnalysisErrorReporterManager errManager, SystemInstance root, SystemOperationMode som)
monitor
- The progress monitor to use.errManager
- The error manager to use. This is the same as error
manager that AbstractAaxlAction.getErrorManager()
returns. It is provided here
as a convenience.root
- The system instance model.som
- The system operation mode that the model is projected into.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |