|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ui.actions.ActionDelegate
public abstract class ActionDelegate
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 | |
|---|---|
ActionDelegate()
|
|
| Method Summary | |
|---|---|
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. |
| 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 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
action
public 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 IActionDelegate2
public 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 run
|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.