This class may be instantiated; it is not intended to be subclassed.
Method SummaryModifier and TypeMethodDescription
dispose()Disposes this action delegate.
voidInitializes this action delegate with the workbench window it will work in.
voidPerforms this action.
voidNotifies this action delegate that the selection in the workbench has changed.
disposepublic void dispose()Description copied from interface:
IWorkbenchWindowActionDelegateDisposes this action delegate. The implementor should unhook any references to itself so that garbage collection can occur.
initpublic void init
(IWorkbenchWindow window)Description copied from interface:
IWorkbenchWindowActionDelegateInitializes this action delegate with the workbench window it will work in.
runpublic void run
(IAction action)Description copied from interface:
IActionDelegatePerforms this action.
This method is called by the proxy action when the action has been triggered. Implement this method to do the actual work.
Note: If the action delegate also implements
IActionDelegate2, then this method is not invoked but instead the
runWithEvent(IAction, Event)method is called.
selectionChangedDescription copied from interface:
IActionDelegateNotifies this action delegate that the selection in the workbench has changed.
Implementers can use this opportunity to change the availability of the action or to modify other presentation properties.
When the selection changes, the action enablement state is updated based on the criteria specified in the plugin.xml file. Then the delegate is notified of the selection change regardless of whether the enablement criteria in the plugin.xml file is met.