| java.lang.Object org.eclipse.ui.internal.handlers.SlaveHandlerService
All known Subclasses: org.eclipse.ui.internal.handlers.NestableHandlerService,
SlaveHandlerService | public class SlaveHandlerService implements IHandlerService(Code) | | A handler service which delegates almost all responsibility to the parent
service. It is only responsible for disposing of locally activated handlers
when it is disposed.
This class is not intended for use outside of the
org.eclipse.ui.workbench plug-in.
since: 3.2 |
Constructor Summary | |
public | SlaveHandlerService(IHandlerService parentHandlerService, Expression defaultExpression) Constructs a new instance.
Parameters: parentHandlerService - The parent handler service for this slave; must not benull . Parameters: defaultExpression - The default expression to use if none is provided. |
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 sourcePriorities) | final public void | addSourceProvider(ISourceProvider provider) | final public ExecutionEvent | createExecutionEvent(Command command, Event event) | final public ExecutionEvent | createExecutionEvent(ParameterizedCommand command, Event event) | final public void | deactivateHandler(IHandlerActivation activation) | final public void | deactivateHandlers(Collection activations) | final public void | dispose() | protected IHandlerActivation | doActivation(IHandlerActivation localActivation) | final public Object | executeCommand(ParameterizedCommand command, Event event) | final public Object | executeCommand(String commandId, Event event) | final public IEvaluationContext | getCurrentState() | final public void | readRegistry() | final public void | removeSourceProvider(ISourceProvider provider) | final public void | setHelpContextId(IHandler handler, String helpContextId) |
defaultExpression | final protected Expression defaultExpression(Code) | | The default expression to use when
SlaveHandlerService.activateHandler(String,IHandler) is called. Handlers
contributed using that method will only be active when this service is
active. However, this expression will be used for conflict resolution.
|
localActivationsToParentActivations | final protected Map localActivationsToParentActivations(Code) | | A map of the local activation to the parent activations. If this service
is inactive, then all parent activations are null .
Otherwise, they point to the corresponding activation in the parent
service.
|
parent | final protected IHandlerService parent(Code) | | The parent handler service to which all requests are ultimately routed.
This value is never null .
|
parentActivations | final protected Set parentActivations(Code) | | The activations registered with the parent handler service. This value is
never null .
|
SlaveHandlerService | public SlaveHandlerService(IHandlerService parentHandlerService, Expression defaultExpression)(Code) | | Constructs a new instance.
Parameters: parentHandlerService - The parent handler service for this slave; must not benull . Parameters: defaultExpression - The default expression to use if none is provided. This isprimarily used for conflict resolution. This value may benull . |
createExecutionEvent | final public ExecutionEvent createExecutionEvent(Command command, Event event)(Code) | | |
createExecutionEvent | final 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 event) throws ExecutionException, NotDefinedException, NotEnabledException, NotHandledException(Code) | | |
executeCommand | final public Object executeCommand(String commandId, Event event) throws ExecutionException, NotDefinedException, NotEnabledException, NotHandledException(Code) | | |
getCurrentState | final public IEvaluationContext getCurrentState()(Code) | | |
readRegistry | final public void readRegistry()(Code) | | |
setHelpContextId | final public void setHelpContextId(IHandler handler, String helpContextId)(Code) | | |
|
|