| org.eclipse.ui.contexts.IContextManager
All known Subclasses: org.eclipse.ui.internal.contexts.ContextManagerLegacyWrapper,
IContextManager | public interface IContextManager (Code) | |
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.
since: 3.0 See Also: org.eclipse.core.commands.contexts.ContextManager |
addContextManagerListener | void addContextManagerListener(IContextManagerListener contextManagerListener)(Code) | | Registers an instance of IContextManagerListener to listen
for changes to properties of this instance.
Parameters: contextManagerListener - the instance to register. Must not be null . Ifan attempt is made to register an instance which is alreadyregistered with this instance, no operation is performed. |
getContext | IContext getContext(String contextId)(Code) | | Returns an instance of IContext given an identifier.
Parameters: contextId - an identifier. Must not be null an instance of IContext . |
getDefinedContextIds | SortedSet getDefinedContextIds()(Code) | | Returns the set of identifiers to defined contexts. The set is sorted by
the depth of the context within the tree of contexts. So, for example,
a child context will always appear before its parent.
Notification is sent to all registered listeners if this property
changes.
the set of identifiers to defined contexts. This set may beempty, but is guaranteed not to be null . If thisset is not empty, it is guaranteed to only contain instances ofString . |
getEnabledContextIds | SortedSet getEnabledContextIds()(Code) | | Returns the set of identifiers to enabled contexts. The set is sorted by
the depth of the context within the tree of contexts. So, for example,
a child context will always appear before its parent.
Notification is sent to all registered listeners if this property
changes.
the set of identifiers to enabled contexts. This set may beempty, but is guaranteed not to be null . If thisset is not empty, it is guaranteed to only contain instances ofString . |
removeContextManagerListener | void removeContextManagerListener(IContextManagerListener contextManagerListener)(Code) | | Unregisters an instance of IContextManagerListener
listening for changes to properties of this instance.
Parameters: contextManagerListener - the instance to unregister. Must not be null .If an attempt is made to unregister an instance which is notalready registered with this instance, no operation isperformed. |
|
|