Method SummaryModifier and TypeMethodDescription
voidPerforms this action.
voidNotifies this action delegate that the selection in the workbench has changed.
voidSets the active editor for the delegate.
update()Requests that this object update itself.
setActiveEditorDescription copied from interface:
IEditorActionDelegateSets the active editor for the delegate. Implementors should disconnect from the old editor, connect to the new editor, and update the action to reflect the new editor.
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.
updatepublic void update()Description copied from interface:
IUpdateRequests that this object update itself.