public final class ExternalActionManager extends Object
A manager for a callback facility which is capable of querying external interfaces for additional information about actions and action contribution items. This information typically includes things like accelerators and textual representations.
It is only necessary to use this mechanism if you will be using a mix of actions and commands, and wish the interactions to work properly.
For example, in the Eclipse workbench, this mechanism is used to allow the command architecture to override certain values in action contribution items.
This class is not intended to be called or extended by any external clients.
Nested Class Summary
Nested Classes Modifier and Type Class Description
ExternalActionManager.CommandCallbackA simple implementation of the
ICallbackmechanism that simply takes a
ExternalActionManager.IActiveCheckerDefines a callback mechanism for developer who wish to further control the visibility of legacy action-based contribution items.
ExternalActionManager.IBindingManagerCallbackA callback which communicates with the applications binding manager.
ExternalActionManager.ICallbackA callback mechanism for some external tool to communicate extra information to actions and action contribution items.
ExternalActionManager.IExecuteApplicableAn overridable mechanism to filter certain IActions from the execution bridge.
ExternalActionManager.IExecuteCallbackA callback for executing execution events.
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description
getCallback()An accessor for the current call back.
getInstance()Retrieves the current singleton instance of this class.
setCallback(ExternalActionManager.ICallback callbackToUse)A mutator for the current call back
public static ExternalActionManager getInstance()Retrieves the current singleton instance of this class.
- The singleton instance; this value is never
public ExternalActionManager.ICallback getCallback()An accessor for the current call back.
- The current callback mechanism being used. This is the callback
that should be queried for extra information about actions and
action contribution items. This value may be
nullif there is no extra information.
public void setCallback(ExternalActionManager.ICallback callbackToUse)A mutator for the current call back
callbackToUse- The new callback mechanism to use; this value may be
nullif the default is acceptable (i.e., no extra information will provided to actions).