public abstract class ActionDelegate extends Object implements IActionDelegate2
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 and Description |
|---|
ActionDelegate() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
The
ActionDelegate implementation of this
IActionDelegate2 method does nothing. |
void |
init(IAction action)
The
ActionDelegate implementation of this
IActionDelegate2 method does nothing. |
void |
run(IAction action)
The
ActionDelegate implementation of this
IActionDelegate method does nothing. |
void |
runWithEvent(IAction action,
Event event)
The
ActionDelegate implementation of this
IActionDelegate2 method redirects to the run
method. |
void |
selectionChanged(IAction action,
ISelection selection)
The
ActionDelegate implementation of this
IActionDelegate method does nothing. |
public void run(IAction action)
ActionDelegate implementation of this
IActionDelegate method does nothing. Subclasses may
reimplement.
Note: This method is not called directly by the proxy action. Only
by the default implementation of runWithEvent of this
abstract class.
run in interface IActionDelegateaction - the action proxy that handles the presentation portion of the
actionpublic void selectionChanged(IAction action, ISelection selection)
ActionDelegate implementation of this
IActionDelegate method does nothing. Subclasses may
reimplement.selectionChanged in interface IActionDelegateaction - the action proxy that handles presentation portion of
the actionselection - the current selection, or null if there
is no selection.public void init(IAction action)
ActionDelegate implementation of this
IActionDelegate2 method does nothing. Subclasses may
reimplement.init in interface IActionDelegate2action - the proxy action that handles the presentation portion of
the action.public void dispose()
ActionDelegate implementation of this
IActionDelegate2 method does nothing. Subclasses may
reimplement.dispose in interface IActionDelegate2public void runWithEvent(IAction action, Event event)
ActionDelegate implementation of this
IActionDelegate2 method redirects to the run
method. Subclasses may reimplement.runWithEvent in interface IActionDelegate2action - the action proxy that handles the presentation portion of
the actionevent - the SWT event which triggered this action being runGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.