Package org.eclipse.ui.actions
Class ActionDelegate
java.lang.Object
org.eclipse.ui.actions.ActionDelegate
- All Implemented Interfaces:
IActionDelegate,IActionDelegate2
- Direct Known Subclasses:
AbstractRulerActionDelegate
Abstract base implementation of
IActionDelegate and
IActionDelegate2 for a client delegate action.
Subclasses should reimplement runWithEvent or run
methods to do the action's work, and may reimplement
selectionChanged to react to selection changes in the workbench.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()TheActionDelegateimplementation of thisIActionDelegate2method does nothing.voidTheActionDelegateimplementation of thisIActionDelegate2method does nothing.voidTheActionDelegateimplementation of thisIActionDelegatemethod does nothing.voidrunWithEvent(IAction action, Event event) TheActionDelegateimplementation of thisIActionDelegate2method redirects to therunmethod.voidselectionChanged(IAction action, ISelection selection) TheActionDelegateimplementation of thisIActionDelegatemethod does nothing.
-
Constructor Details
-
ActionDelegate
public ActionDelegate()
-
-
Method Details
-
run
TheActionDelegateimplementation of thisIActionDelegatemethod does nothing. Subclasses may reimplement.Note: This method is not called directly by the proxy action. Only by the default implementation of
runWithEventof this abstract class.- Specified by:
runin interfaceIActionDelegate- Parameters:
action- the action proxy that handles the presentation portion of the action
-
selectionChanged
TheActionDelegateimplementation of thisIActionDelegatemethod does nothing. Subclasses may reimplement.- Specified by:
selectionChangedin interfaceIActionDelegate- Parameters:
action- the action proxy that handles presentation portion of the actionselection- the current selection, ornullif there is no selection.
-
init
TheActionDelegateimplementation of thisIActionDelegate2method does nothing. Subclasses may reimplement.- Specified by:
initin interfaceIActionDelegate2- Parameters:
action- the proxy action that handles the presentation portion of the action.
-
dispose
public void dispose()TheActionDelegateimplementation of thisIActionDelegate2method does nothing. Subclasses may reimplement.- Specified by:
disposein interfaceIActionDelegate2
-
runWithEvent
TheActionDelegateimplementation of thisIActionDelegate2method redirects to therunmethod. Subclasses may reimplement.- Specified by:
runWithEventin interfaceIActionDelegate2- Parameters:
action- the action proxy that handles the presentation portion of the actionevent- the SWT event which triggered this action being run
-