Package org.eclipse.jface.action
Class ExternalActionManager
java.lang.Object
org.eclipse.jface.action.ExternalActionManager
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.
- Since:
- 3.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A simple implementation of theICallback
mechanism that simply takes aBindingManager
and aCommandManager
.static interface
Defines a callback mechanism for developer who wish to further control the visibility of legacy action-based contribution items.static interface
A callback which communicates with the applications binding manager.static interface
A callback mechanism for some external tool to communicate extra information to actions and action contribution items.static interface
An overridable mechanism to filter certain IActions from the execution bridge.static interface
A callback for executing execution events. -
Method Summary
Modifier and TypeMethodDescriptionAn accessor for the current call back.static ExternalActionManager
Retrieves the current singleton instance of this class.void
setCallback
(ExternalActionManager.ICallback callbackToUse) A mutator for the current call back
-
Method Details
-
getInstance
Retrieves the current singleton instance of this class.- Returns:
- The singleton instance; this value is never
null
.
-
getCallback
An accessor for the current call back.- Returns:
- 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
null
if there is no extra information.
-
setCallback
A mutator for the current call back- Parameters:
callbackToUse
- The new callback mechanism to use; this value may benull
if the default is acceptable (i.e., no extra information will provided to actions).
-