| java.lang.Object org.eclipse.ui.internal.services.ExpressionAuthority org.eclipse.ui.internal.handlers.HandlerAuthority
HandlerAuthority | final class HandlerAuthority extends ExpressionAuthority (Code) | |
A central authority for resolving conflicts between handlers. This authority
listens to a variety of incoming sources, and updates the underlying commands
if changes in the active handlers occur.
This authority encapsulates all of the handler conflict resolution mechanisms
for the workbench. A conflict occurs if two or more handlers are assigned to
the same command identifier. To resolve this conflict, the authority
considers which source the handler came from.
since: 3.1 |
HandlerAuthority | HandlerAuthority(ICommandService commandService)(Code) | | Constructs a new instance of HandlerAuthority .
Parameters: commandService - The command service from which commands can be retrieved (toupdate their handlers); must not be null . |
activateHandler | final void activateHandler(IHandlerActivation activation)(Code) | | Activates a handler on the workbench. This will add it to a master list.
If conflicts exist, they will be resolved based on the source priority.
If conflicts still exist, then no handler becomes active.
Parameters: activation - The activation; must not be null . |
deactivateHandler | final void deactivateHandler(IHandlerActivation activation)(Code) | | Removes an activation for a handler on the workbench. This will remove it
from the master list, and update the appropriate command, if necessary.
Parameters: activation - The activation; must not be null . |
findHandler | final public IHandler findHandler(String commandId, IEvaluationContext context)(Code) | | Currently this is a an internal method to help locate a handler.
DO NOT CALL THIS METHOD.
Parameters: commandId - the command id to check Parameters: context - the context to use for activations since: 3.3 |
getActiveShell | final Shell getActiveShell()(Code) | | Returns the currently active shell.
The currently active shell; may be null . |
getContextSnapshot | public IEvaluationContext getContextSnapshot()(Code) | | Normally the context returned from getCurrentState() still tracks the
application state. This method creates a copy and fills it in with the
variables that we know about. Currently it does not fill in the active
selection.
DO NOT CALL THIS METHOD. It is experimental in 3.3.
an evaluation context with no parent. since: 3.3 |
getFullContextSnapshot | public IEvaluationContext getFullContextSnapshot()(Code) | | Normally the context returned from getCurrentState() still tracks the
application state. This method creates a copy and fills it in with all the
variables that we know about.
DO NOT CALL THIS METHOD. It is experimental in 3.3.
an evaluation context with no parent. since: 3.3 |
sourceChanged | final protected void sourceChanged(int sourcePriority)(Code) | | Carries out the actual source change notification. It assumed that by the
time this method is called, context is up-to-date with the
current state of the application.
Parameters: sourcePriority - A bit mask of all the source priorities that have changed. |
updateShellKludge | final void updateShellKludge()(Code) | |
Bug 95792. A mechanism by which the key binding architecture can force an
update of the handlers (based on the active shell) before trying to
execute a command. This mechanism is required for GTK+ only.
DO NOT CALL THIS METHOD.
|
|
|