AaxlReadOnlyActionAsJob
.public abstract class AaxlReadOnlyAction extends AbstractAaxlAction
doAaxlAction(Element)
method. The AbstractAaxlAction.getMarkerType()
method
should also be overridden to return the name of the marker type the analysis
should use to report errors.
The action is invoked in a UIJob
that also
wraps the action as a IWorkspaceRunnable
.
In this way, the action runs in the UI/SWT thread and is thus able to create
dialog boxes without worry. The downside is that the action locks up
Eclipse's user interface. As an workspace runnable, a single workspace event
(if any) is sent at the end of the action, and, more importantly, the
workspace is locked from the root object. Thus the action has exclusive
access to all the models in the workspace.
This actions puts up a generic progress bar. Subclasses do not have
access to the progress bar, and thus cannot update its status. (This class
exists to be an API-compatible replacement to the original AaxlReadOnlyAction
class. The new preferred class is AaxlReadOnlyActionAsJob
that does provide access to the progress bar.)
Constructor and Description |
---|
AaxlReadOnlyAction()
Deprecated.
The constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
doAaxlAction(Element root)
Deprecated.
This method will be defined by the plugin.
|
dispose, init, run, selectionChanged, setActivePart
public abstract void doAaxlAction(Element root)
protected
and not public
, but we have external
clients now so it's too late to change it.root
-