Package org.eclipse.ui.contexts
Class ContextManagerEvent
- java.lang.Object
-
- org.eclipse.ui.contexts.ContextManagerEvent
-
@Deprecated public final class ContextManagerEvent extends Object
Deprecated.Please use the "org.eclipse.core.commands" plug-in instead.An instance of this class describes changes to an instance ofIContextManager
.This class is not intended to be extended by clients.
- Since:
- 3.0
- See Also:
IContextManagerListener.contextManagerChanged(ContextManagerEvent)
,ContextManagerEvent
-
-
Constructor Summary
Constructors Constructor Description ContextManagerEvent(IContextManager contextManager, boolean definedContextIdsChanged, boolean enabledContextIdsChanged, Set previouslyDefinedContextIds, Set previouslyEnabledContextIds)
Deprecated.Creates a new instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description IContextManager
getContextManager()
Deprecated.Returns the instance of the interface that changed.Set
getPreviouslyDefinedContextIds()
Deprecated.Returns the set of identifiers to previously defined contexts.Set
getPreviouslyEnabledContextIds()
Deprecated.Returns the set of identifiers to previously enabled contexts.boolean
haveDefinedContextIdsChanged()
Deprecated.Returns whether or not the definedContextIds property changed.boolean
haveEnabledContextIdsChanged()
Deprecated.Returns whether or not the enabledContextIds property changed.
-
-
-
Constructor Detail
-
ContextManagerEvent
public ContextManagerEvent(IContextManager contextManager, boolean definedContextIdsChanged, boolean enabledContextIdsChanged, Set previouslyDefinedContextIds, Set previouslyEnabledContextIds)
Deprecated.Creates a new instance of this class.- Parameters:
contextManager
- the instance of the interface that changed.definedContextIdsChanged
- true, iff the definedContextIds property changed.enabledContextIdsChanged
- true, iff the enabledContextIds property changed.previouslyDefinedContextIds
- the set of identifiers to previously defined contexts. This set may be empty. If this set is not empty, it must only contain instances ofString
. This set must benull
if definedContextIdsChanged isfalse
and must not be null if definedContextIdsChanged istrue
.previouslyEnabledContextIds
- the set of identifiers to previously enabled contexts. This set may be empty. If this set is not empty, it must only contain instances ofString
. This set must benull
if enabledContextIdsChanged isfalse
and must not be null if enabledContextIdsChanged istrue
.
-
-
Method Detail
-
getContextManager
public IContextManager getContextManager()
Deprecated.Returns the instance of the interface that changed.- Returns:
- the instance of the interface that changed. Guaranteed not to be
null
.
-
getPreviouslyDefinedContextIds
public Set getPreviouslyDefinedContextIds()
Deprecated.Returns the set of identifiers to previously defined contexts.- Returns:
- the set of identifiers to previously defined contexts. This set may
be empty. If this set is not empty, it is guaranteed to only contain
instances of
String
. This set is guaranteed to benull
if haveDefinedContextIdsChanged() isfalse
and is guaranteed to not be null if haveDefinedContextIdsChanged() istrue
.
-
getPreviouslyEnabledContextIds
public Set getPreviouslyEnabledContextIds()
Deprecated.Returns the set of identifiers to previously enabled contexts.- Returns:
- the set of identifiers to previously enabled contexts. This set may
be empty. If this set is not empty, it is guaranteed to only contain
instances of
String
. This set is guaranteed to benull
if haveEnabledContextIdsChanged() isfalse
and is guaranteed to not be null if haveEnabledContextIdsChanged() istrue
.
-
haveDefinedContextIdsChanged
public boolean haveDefinedContextIdsChanged()
Deprecated.Returns whether or not the definedContextIds property changed.- Returns:
- true, iff the definedContextIds property changed.
-
haveEnabledContextIdsChanged
public boolean haveEnabledContextIdsChanged()
Deprecated.Returns whether or not the enabledContextIds property changed.- Returns:
- true, iff the enabledContextIds property changed.
-
-