Package org.eclipse.core.commands.common
Class AbstractNamedHandleEvent
- java.lang.Object
-
- org.eclipse.core.commands.common.AbstractBitSetEvent
-
- org.eclipse.core.commands.common.AbstractHandleObjectEvent
-
- org.eclipse.core.commands.common.AbstractNamedHandleEvent
-
- Direct Known Subclasses:
CategoryEvent,CommandEvent,ContextEvent,SchemeEvent
public abstract class AbstractNamedHandleEvent extends AbstractHandleObjectEvent
An event fired from a
NamedHandleObject. This provides notification of changes to the defined state, the name and the description.- Since:
- 3.1
-
-
Field Summary
Fields Modifier and Type Field Description protected static intCHANGED_DESCRIPTIONThe bit used to represent whether the category has changed its description.protected static intCHANGED_NAMEThe bit used to represent whether the category has changed its name.protected static intLAST_USED_BITThe last used bit so that subclasses can add more properties.-
Fields inherited from class org.eclipse.core.commands.common.AbstractHandleObjectEvent
CHANGED_DEFINED, LAST_BIT_USED_ABSTRACT_HANDLE
-
Fields inherited from class org.eclipse.core.commands.common.AbstractBitSetEvent
changedValues
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractNamedHandleEvent(boolean definedChanged, boolean descriptionChanged, boolean nameChanged)Constructs a new instance ofAbstractHandleObjectEvent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisDescriptionChanged()Returns whether or not the description property changed.booleanisNameChanged()Returns whether or not the name property changed.-
Methods inherited from class org.eclipse.core.commands.common.AbstractHandleObjectEvent
isDefinedChanged
-
-
-
-
Field Detail
-
CHANGED_DESCRIPTION
protected static final int CHANGED_DESCRIPTION
The bit used to represent whether the category has changed its description.- See Also:
- Constant Field Values
-
CHANGED_NAME
protected static final int CHANGED_NAME
The bit used to represent whether the category has changed its name.- See Also:
- Constant Field Values
-
LAST_USED_BIT
protected static final int LAST_USED_BIT
The last used bit so that subclasses can add more properties.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractNamedHandleEvent
protected AbstractNamedHandleEvent(boolean definedChanged, boolean descriptionChanged, boolean nameChanged)Constructs a new instance ofAbstractHandleObjectEvent.- Parameters:
definedChanged-true, iff the defined property changed.descriptionChanged-true, iff the description property changed.nameChanged-true, iff the name property changed.
-
-
Method Detail
-
isDescriptionChanged
public final boolean isDescriptionChanged()
Returns whether or not the description property changed.- Returns:
true, iff the description property changed.
-
isNameChanged
public final boolean isNameChanged()
Returns whether or not the name property changed.- Returns:
true, iff the name property changed.
-
-