| java.lang.Object org.eclipse.ui.internal.handlers.HandlerService
HandlerService | final public class HandlerService implements IHandlerService(Code) | |
Provides services related to activating and deactivating handlers within the
workbench.
since: 3.1 |
Method Summary | |
final public IHandlerActivation | activateHandler(IHandlerActivation childActivation) | final public IHandlerActivation | activateHandler(String commandId, IHandler handler) | final public IHandlerActivation | activateHandler(String commandId, IHandler handler, Expression expression) | final public IHandlerActivation | activateHandler(String commandId, IHandler handler, Expression expression, boolean global) | final public IHandlerActivation | activateHandler(String commandId, IHandler handler, Expression expression, int sourcePriority) | final public void | addSourceProvider(ISourceProvider provider) | final public ExecutionEvent | createExecutionEvent(Command command, Event event) | public ExecutionEvent | createExecutionEvent(ParameterizedCommand command, Event event) | final public void | deactivateHandler(IHandlerActivation activation) | final public void | deactivateHandlers(Collection activations) | final public void | dispose() | final public Object | executeCommand(ParameterizedCommand command, Event trigger) | final public Object | executeCommand(String commandId, Event trigger) | final public Object | executeCommandInContext(ParameterizedCommand command, Event trigger, IEvaluationContext context) Execute the command using the provided context. | final public IHandler | findHandler(String commandId, IEvaluationContext context) Currently this is a an internal method to help locate a handler. | final public IEvaluationContext | getContextSnapshot() Normally the context returned from getCurrentState() still tracks the
application state. | final public IEvaluationContext | getCurrentState() | final public IEvaluationContext | getFullContextSnapshot() Normally the context returned from getCurrentState() still tracks the
application state. | final public void | readRegistry() | final public void | removeSourceProvider(ISourceProvider provider) | final public void | setHelpContextId(IHandler handler, String helpContextId) | final public void | updateShellKludge()
Bug 95792. | final public void | updateShellKludge(Shell shell)
Bug 95792. |
HandlerService | public HandlerService(ICommandService commandService, IEvaluationService evaluationService)(Code) | | Constructs a new instance of CommandService using a
command manager.
Parameters: commandService - The command service to use; must not be null . Parameters: evaluationService - The evaluation service to use; must not be null . |
createExecutionEvent | final public ExecutionEvent createExecutionEvent(Command command, Event event)(Code) | | |
createExecutionEvent | public ExecutionEvent createExecutionEvent(ParameterizedCommand command, Event event)(Code) | | |
deactivateHandlers | final public void deactivateHandlers(Collection activations)(Code) | | |
dispose | final public void dispose()(Code) | | |
executeCommand | final public Object executeCommand(ParameterizedCommand command, Event trigger) throws ExecutionException, NotDefinedException, NotEnabledException, NotHandledException(Code) | | |
executeCommand | final public Object executeCommand(String commandId, Event trigger) throws ExecutionException, NotDefinedException, NotEnabledException, NotHandledException(Code) | | |
executeCommandInContext | final public Object executeCommandInContext(ParameterizedCommand command, Event trigger, IEvaluationContext context) throws ExecutionException, NotDefinedException, NotEnabledException, NotHandledException(Code) | | Execute the command using the provided context. It takes care of finding
the correct active handler given the context, and executes with that
handler.
It currently cannot effect the enablement of the handler.
DO NOT CALL THIS METHOD. It is experimental in 3.3.
Parameters: command - the parameterized command to execute Parameters: trigger - the SWT event trigger ... can be null Parameters: context - the evaluation context to run against. throws: ExecutionException - throws: NotDefinedException - throws: NotEnabledException - throws: NotHandledException - since: 3.3 See Also: HandlerService.getContextSnapshot() |
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 |
getContextSnapshot | final 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 |
getCurrentState | final public IEvaluationContext getCurrentState()(Code) | | |
getFullContextSnapshot | final 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 |
readRegistry | final public void readRegistry()(Code) | | |
setHelpContextId | final public void setHelpContextId(IHandler handler, String helpContextId)(Code) | | |
updateShellKludge | final public 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.
|
updateShellKludge | final public void updateShellKludge(Shell shell)(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.
Parameters: shell - The shell that should be considered active; must not benull . |
|
|