|
||||||||||
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.CheckModelSemantics
public final class CheckModelSemantics
Constructor Summary | |
---|---|
CheckModelSemantics()
|
Method Summary | |
---|---|
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 java.lang.String |
getActionName()
Get the name of the action to display in the Job, etc. |
protected org.osgi.framework.Bundle |
getBundle()
Get the bundle ("plug-in") to attribute internal errors to. |
protected java.lang.String |
getMarkerType()
Get the type of the markers that the action might create. |
Methods inherited from class edu.cmu.sei.osate.ui.actions.AaxlReadOnlyActionAsJob |
---|
createJob |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CheckModelSemantics()
Method Detail |
---|
protected org.osgi.framework.Bundle getBundle()
AbstractAaxlAction
Subclasses should override this method to return the bundle
in which they are located. The default value is to return the
bundle associated with edu.cmu.sei.osate.ui
.
getBundle
in class AbstractAaxlAction
protected java.lang.String getMarkerType()
AbstractAaxlAction
MarkerAnalysisErrorReporter
for that marker type for
the resource being analyzed. Any existing markers of that type on the
resource will be removed.
Subclasses should override this method to change the marker type used by
the action. The initial implementation returns the generic
"AadlObjectMarker"
marker type, and will therefore cause
all existing OSATE markers to be removed from the resource.
getMarkerType
in class AbstractAaxlAction
"AadlObjectMarker"
.AbstractAaxlAction.getDefaultAnalysisErrorReporterFactory()
,
AbstractAaxlAction.getAnalysisErrorReporterFactory()
protected java.lang.String getActionName()
AaxlReadOnlyActionAsJob
getActionName
in class AaxlReadOnlyActionAsJob
public 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |