Package org.eclipse.ui.actions
Class ActionDelegate
- java.lang.Object
-
- org.eclipse.ui.actions.ActionDelegate
-
- All Implemented Interfaces:
IActionDelegate,IActionDelegate2
- Direct Known Subclasses:
AbstractRulerActionDelegate
public abstract class ActionDelegate extends Object implements IActionDelegate2
Abstract base implementation ofIActionDelegateandIActionDelegate2for a client delegate action.Subclasses should reimplement
runWithEventorrunmethods to do the action's work, and may reimplementselectionChangedto react to selection changes in the workbench.
-
-
Constructor Summary
Constructors Constructor Description ActionDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()TheActionDelegateimplementation of thisIActionDelegate2method does nothing.voidinit(IAction action)TheActionDelegateimplementation of thisIActionDelegate2method does nothing.voidrun(IAction action)TheActionDelegateimplementation 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.
-
-
-
Method Detail
-
run
public void run(IAction action)
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
public void selectionChanged(IAction action, ISelection selection)
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
public void init(IAction action)
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
public void runWithEvent(IAction action, Event event)
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
-
-