public class ContextContextService extends java.lang.Object implements EContextService
| Constructor and Description |
|---|
ContextContextService(IEclipseContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
activateContext(java.lang.String id)
Adds the given
Context id to the list of active contexts |
void |
deactivateContext(java.lang.String id)
Removes the given
Context id from the list of active Contexts |
void |
deferUpdates(boolean defer)
Informs the manager that a batch operation has started.
|
java.util.Collection<java.lang.String> |
getActiveContextIds()
Returns the complete listing of
Context ids that are active or
null if there are no active Contexts |
Context |
getContext(java.lang.String id)
Look up a
Context with a given id. |
public void activateContext(java.lang.String id)
EContextServiceContext id to the list of active contextsactivateContext in interface EContextServiceid - the id of the Context, cannot be nullpublic void deferUpdates(boolean defer)
Note: You must insure that if you call
deferUpdates(true) that nothing in your batched operation
will prevent the matching call to deferUpdates(false).
deferUpdates in interface EContextServicedefer - true when starting a batch operation false when ending the
operationpublic void deactivateContext(java.lang.String id)
EContextServiceContext id from the list of active ContextsdeactivateContext in interface EContextServiceid - the id of the Context, cannot be nullpublic java.util.Collection<java.lang.String> getActiveContextIds()
EContextServiceContext ids that are active or
null if there are no active ContextsgetActiveContextIds in interface EContextServiceContext ids or nullIServiceConstants.ACTIVE_CONTEXTSpublic Context getContext(java.lang.String id)
EContextServiceContext with a given id. If no Context has the given id
then null is returnedgetContext in interface EContextServiceid - the id of the Context, cannot be nullContext with the given id or null