| java.lang.Object org.eclipse.ui.internal.contexts.SlaveContextService
All known Subclasses: org.eclipse.ui.internal.contexts.NestableContextService,
SlaveContextService | public class SlaveContextService implements IContextService(Code) | | A context service which delegates almost all responsibility to the parent
service.
This class is not intended for use outside of the
org.eclipse.ui.workbench plug-in.
since: 3.2 |
Constructor Summary | |
public | SlaveContextService(IContextService parentService, Expression defaultExpression) Construct the new slave.
Parameters: parentService - the parent context service; must not be null . Parameters: defaultExpression - A default expression to use to determine viability. |
fDefaultExpression | protected Expression fDefaultExpression(Code) | | The default expression used when
SlaveContextService.activateContext(String) is
called. Contexts contributed that use this expression will only be active
with this service is active.
|
fLocalActivations | protected Map fLocalActivations(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.
|
fParentActivations | protected Set fParentActivations(Code) | | Our contexts that are currently active with the parent context service.
|
fParentService | protected IContextService fParentService(Code) | | The parent context service, which is never null .
|
SlaveContextService | public SlaveContextService(IContextService parentService, Expression defaultExpression)(Code) | | Construct the new slave.
Parameters: parentService - the parent context service; must not be null . Parameters: defaultExpression - A default expression to use to determine viability. It'smainly used for conflict resolution. It can benull . |
addContextManagerListener | public void addContextManagerListener(IContextManagerListener listener)(Code) | | |
dispose | public void dispose()(Code) | | |
doActivateContext | protected IContextActivation doActivateContext(IContextActivation activation)(Code) | | Activate the context with respect to this slave service.
Parameters: contextId - the context id Parameters: expression - the expression to use the activated context |
getDefinedContexts | public Context[] getDefinedContexts()(Code) | | |
getShellType | public int getShellType(Shell shell)(Code) | | |
readRegistry | public void readRegistry()(Code) | | |
registerShell | public boolean registerShell(Shell shell, int type)(Code) | | |
removeContextManagerListener | public void removeContextManagerListener(IContextManagerListener listener)(Code) | | |
unregisterShell | public boolean unregisterShell(Shell shell)(Code) | | |
|
|