@Deprecated public interface IContextManager
A context manager tracks the sets of defined and enabled contexts within the application. The manager sends notification events to listeners when these sets change. It is also possible to retrieve any given context with its identifier.
This interface is not intended to be extended or implemented by clients.
ContextManager
Modifier and Type | Method and Description |
---|---|
void |
addContextManagerListener(IContextManagerListener contextManagerListener)
Deprecated.
Registers an instance of
IContextManagerListener to listen
for changes to properties of this instance. |
IContext |
getContext(String contextId)
Deprecated.
Returns an instance of
IContext given an identifier. |
SortedSet |
getDefinedContextIds()
Deprecated.
Returns the set of identifiers to defined contexts.
|
SortedSet |
getEnabledContextIds()
Deprecated.
Returns the set of identifiers to enabled contexts.
|
void |
removeContextManagerListener(IContextManagerListener contextManagerListener)
Deprecated.
Unregisters an instance of
IContextManagerListener
listening for changes to properties of this instance. |
void addContextManagerListener(IContextManagerListener contextManagerListener)
IContextManagerListener
to listen
for changes to properties of this instance.contextManagerListener
- the instance to register. Must not be null
. If
an attempt is made to register an instance which is already
registered with this instance, no operation is performed.IContext getContext(String contextId)
IContext
given an identifier.contextId
- an identifier. Must not be null
IContext
.SortedSet getDefinedContextIds()
Notification is sent to all registered listeners if this property changes.
null
. If this
set is not empty, it is guaranteed to only contain instances of
String
.SortedSet getEnabledContextIds()
Notification is sent to all registered listeners if this property changes.
null
. If this
set is not empty, it is guaranteed to only contain instances of
String
.void removeContextManagerListener(IContextManagerListener contextManagerListener)
IContextManagerListener
listening for changes to properties of this instance.contextManagerListener
- the instance to unregister. Must not be null
.
If an attempt is made to unregister an instance which is not
already registered with this instance, no operation is
performed.
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.