Package org.eclipse.core.commands.common
Class HandleObjectManager<T extends NamedHandleObject>
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.common.HandleObjectManager<T>
- Type Parameters:
T
- The type of handled objects
- Direct Known Subclasses:
BindingManager
,CommandManager
,ContextManager
A manager of HandleObject
instances. This has some common behaviour
which is shared between all such managers.
Clients may extend.
- Since:
- 3.2
-
Field Summary
Modifier and TypeFieldDescriptionThe set of handle objects that are defined.The map of identifiers (String
) to handle objects (HandleObject
). -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final void
Verifies that the identifier is valid.protected final Set
Returns the set of identifiers for those handle objects that are defined.Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
Field Details
-
definedHandleObjects
The set of handle objects that are defined. This value may be empty, but it is nevernull
. -
handleObjectsById
The map of identifiers (String
) to handle objects (HandleObject
). This collection may be empty, but it is nevernull
.
-
-
Constructor Details
-
HandleObjectManager
public HandleObjectManager()
-
-
Method Details
-
checkId
Verifies that the identifier is valid. Exceptions will be thrown if the identifier is invalid in some way.- Parameters:
id
- The identifier to validate; may be anything.
-
getDefinedHandleObjectIds
Returns the set of identifiers for those handle objects that are defined.- Returns:
- The set of defined handle object identifiers; this value may be
empty, but it is never
null
.
-