|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.ui.actions.ActionDelegate
Abstract base implementation of IActionDelegate
.
Subclasses must implement run
to do the action's work, and may
reimplement selectionChanged
to react to selection changes
in the workbench.
Constructor Summary | |
ActionDelegate()
|
Method Summary | |
abstract void |
run(IAction action)
Performs this action. |
void |
selectionChanged(IAction action,
ISelection selection)
The ActionDelegate implementation of this IAction
method does nothing. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ActionDelegate()
Method Detail |
public abstract void run(IAction action)
IActionDelegate
This method is called when the delegating action has been triggered. Implement this method to do the actual work.
run
in interface IActionDelegate
action
- the action proxy that handles the presentation portion of the
actionpublic void selectionChanged(IAction action, ISelection selection)
ActionDelegate
implementation of this IAction
method does nothing. Subclasses may reimplement.
selectionChanged
in interface IActionDelegate
action
- the action proxy that handles presentation portion of
the actionselection
- the current selection, or null
if there
is no selection.
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |