Package org.eclipse.ui.activities
Class CategoryEvent
java.lang.Object
org.eclipse.ui.activities.CategoryEvent
An instance of this class describes changes to an instance of
ICategory
. This class does not give details as to the specifics
of a change, only that the given property on the source object has changed.
This class is not intended to be extended by clients.
- Since:
- 3.0
- See Also:
-
Constructor Summary
ConstructorDescriptionCategoryEvent
(ICategory category, boolean categoryActivityBindingsChanged, boolean definedChanged, boolean descriptionChanged, boolean nameChanged) Creates a new instance of this class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the instance of the interface that changed.boolean
Returns whether or not the defined property changed.boolean
Returns whether or not the description property changed.boolean
Returns whether or not the name property changed.boolean
Returns whether or not the categoryActivityBindings property changed.
-
Constructor Details
-
CategoryEvent
public CategoryEvent(ICategory category, boolean categoryActivityBindingsChanged, boolean definedChanged, boolean descriptionChanged, boolean nameChanged) Creates a new instance of this class.- Parameters:
category
- the instance of the interface that changed.categoryActivityBindingsChanged
-true
, iff the categoryActivityBindings property changed.definedChanged
-true
, iff the defined property changed.descriptionChanged
-true
, iff the description property changed.nameChanged
-true
, iff the name property changed.
-
-
Method Details
-
getCategory
Returns the instance of the interface that changed.- Returns:
- the instance of the interface that changed. Guaranteed not to be
null
.
-
hasDefinedChanged
public boolean hasDefinedChanged()Returns whether or not the defined property changed.- Returns:
true
, iff the defined property changed.
-
hasNameChanged
public boolean hasNameChanged()Returns whether or not the name property changed.- Returns:
true
, iff the name property changed.
-
hasDescriptionChanged
public boolean hasDescriptionChanged()Returns whether or not the description property changed.- Returns:
true
, iff the description property changed.
-
haveCategoryActivityBindingsChanged
public boolean haveCategoryActivityBindingsChanged()Returns whether or not the categoryActivityBindings property changed.- Returns:
true
, iff the categoryActivityBindings property changed.
-