public abstract class AbstractAaxlAction
extends java.lang.Object
implements org.eclipse.ui.IWorkbenchWindowActionDelegate, org.eclipse.ui.IObjectActionDelegate
AaxlReadOnlyAction
and AaxlReadOnlyActionAsJob
. Contains
all the utility methods lookupPropertyDefinition(String, String)
,
lookupPropertyType(String, String)
, etc. Abstracts the Eclipse
job creation process. Calls createJob(Element)
to get the
job to run. It is expected that the job invoke actionBody(IProgressMonitor, Element)
.
This method initializes the OSATE action by creating the error reporter
manager, calling initPropertyReferences()
, etc., and finally
invokes doAaxlAction(IProgressMonitor, Element)
to run the
specific analysis action body.
Users should not extend this class directly, but should extend
AaxlReadOnlyActionAsJob
.
Constructor and Description |
---|
AbstractAaxlAction()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
We can use this method to dispose of any system
resources we previously allocated.
|
void |
init(org.eclipse.ui.IWorkbenchWindow window)
We will cache window object in order to
be able to provide parent shell for the message dialog.
|
void |
run(org.eclipse.jface.action.IAction action)
The action has been activated.
|
void |
selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
Selection in the workbench has been changed.
|
void |
setActivePart(org.eclipse.jface.action.IAction action,
org.eclipse.ui.IWorkbenchPart targetPart) |
public void setActivePart(org.eclipse.jface.action.IAction action, org.eclipse.ui.IWorkbenchPart targetPart)
setActivePart
in interface org.eclipse.ui.IObjectActionDelegate
IObjectActionDelegate.setActivePart(IAction, IWorkbenchPart)
public final void run(org.eclipse.jface.action.IAction action)
doAaxlAction(IProgressMonitor, Element)
, by setting up a
UIJob
that invokes
(default visibility method) processAaxlAction
.run
in interface org.eclipse.ui.IActionDelegate
public final void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
selectionChanged
in interface org.eclipse.ui.IActionDelegate
public void dispose()
dispose
in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
IWorkbenchWindowActionDelegate.dispose()
public void init(org.eclipse.ui.IWorkbenchWindow window)
init
in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
IWorkbenchWindowActionDelegate.init(org.eclipse.ui.IWorkbenchWindow)