Package org.eclipse.ui.activities
Class ActivityManagerEvent
java.lang.Object
org.eclipse.ui.activities.ActivityManagerEvent
An instance of this class describes changes to an instance of
IActivityManager
. 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
ConstructorDescriptionActivityManagerEvent
(IActivityManager activityManager, boolean definedActivityIdsChanged, boolean definedCategoryIdsChanged, boolean enabledActivityIdsChanged, Set<String> previouslyDefinedActivityIds, Set<String> previouslyDefinedCategoryIds, Set<String> previouslyEnabledActivityIds) Creates a new instance of this class.ActivityManagerEvent
(IActivityManager activityManager, boolean definedActivityIdsChanged, boolean definedCategoryIdsChanged, boolean enabledActivityIdsChanged, Set<String> previouslyDefinedActivityIds, Set<String> previouslyDefinedCategoryIds, Set<String> previouslyEnabledActivityIds, Set<String> changedEnabledActivityIds) Creates a new instance of this class. -
Method Summary
Modifier and TypeMethodDescriptioncopyFor
(IActivityManager newActivityManager) Creates a copy of thisActivityManagerEvent
containing the givennewActivityManager
.Returns the instance of the interface that changed.Returns the activity identifiers that were previously defined.Returns the category identifiers that were previously defined.Returns the activity identifiers that were previously enabled.boolean
Returns whether or not the definedActivityIds property changed.boolean
Returns whether or not the definedCategoryIds property changed.boolean
Returns whether or not the enabledActivityIds property changed.boolean
Returns whether or not enabledActivityIds property changed and any of the changed IDs belongs to a non-expression-controlled activity.
-
Constructor Details
-
ActivityManagerEvent
public ActivityManagerEvent(IActivityManager activityManager, boolean definedActivityIdsChanged, boolean definedCategoryIdsChanged, boolean enabledActivityIdsChanged, Set<String> previouslyDefinedActivityIds, Set<String> previouslyDefinedCategoryIds, Set<String> previouslyEnabledActivityIds) Creates a new instance of this class.- Parameters:
activityManager
- the instance of the interface that changed.definedActivityIdsChanged
-true
, iff the definedActivityIds property changed.definedCategoryIdsChanged
-true
, iff the definedCategoryIds property changed.enabledActivityIdsChanged
-true
, iff the enabledActivityIds property changed.previouslyDefinedActivityIds
- the set of identifiers to previously defined activities. This set may be empty. If this set is not empty, it must only contain instances ofString
. This set must benull
if definedActivityIdsChanged isfalse
and must not be null if definedActivityIdsChanged istrue
.previouslyDefinedCategoryIds
- the set of identifiers to previously defined category. This set may be empty. If this set is not empty, it must only contain instances ofString
. This set must benull
if definedCategoryIdsChanged isfalse
and must not be null if definedCategoryIdsChanged istrue
.previouslyEnabledActivityIds
- the set of identifiers to previously enabled activities. This set may be empty. If this set is not empty, it must only contain instances ofString
. This set must benull
if enabledActivityIdsChanged isfalse
and must not be null if enabledActivityIdsChanged istrue
.
-
ActivityManagerEvent
public ActivityManagerEvent(IActivityManager activityManager, boolean definedActivityIdsChanged, boolean definedCategoryIdsChanged, boolean enabledActivityIdsChanged, Set<String> previouslyDefinedActivityIds, Set<String> previouslyDefinedCategoryIds, Set<String> previouslyEnabledActivityIds, Set<String> changedEnabledActivityIds) Creates a new instance of this class.- Parameters:
activityManager
- the instance of the interface that changed.definedActivityIdsChanged
-true
, iff the definedActivityIds property changed.definedCategoryIdsChanged
-true
, iff the definedCategoryIds property changed.enabledActivityIdsChanged
-true
, iff the enabledActivityIds property changed.previouslyDefinedActivityIds
- the set of identifiers to previously defined activities. This set may be empty. If this set is not empty, it must only contain instances ofString
. This set must benull
if definedActivityIdsChanged isfalse
and must not be null if definedActivityIdsChanged istrue
.previouslyDefinedCategoryIds
- the set of identifiers to previously defined category. This set may be empty. If this set is not empty, it must only contain instances ofString
. This set must benull
if definedCategoryIdsChanged isfalse
and must not be null if definedCategoryIdsChanged istrue
.previouslyEnabledActivityIds
- the set of identifiers to previously enabled activities. This set may be empty. If this set is not empty, it must only contain instances ofString
. This set must benull
if enabledActivityIdsChanged isfalse
and must not be null if enabledActivityIdsChanged istrue
.changedEnabledActivityIds
- the set of identifiers to activities whose enabled state has changed. This set may be empty. If this set is not empty, it must only contain instances ofString
. This set must benull
if enabledActivityIdsChanged isfalse
and must not be null if enabledActivityIdsChanged istrue
.- Since:
- 3.131
-
-
Method Details
-
copyFor
Creates a copy of thisActivityManagerEvent
containing the givennewActivityManager
.- Parameters:
newActivityManager
- the new activity manager to be referenced by the copied event- Returns:
- a copy of this event referencing the given activity manager
- Since:
- 3.131
-
getActivityManager
Returns the instance of the interface that changed.- Returns:
- the instance of the interface that changed. Guaranteed not to be
null
.
-
getPreviouslyDefinedActivityIds
Returns the activity identifiers that were previously defined.- Returns:
- The set of defined activity identifiers before the changed; may be
empty, but never
null
. This set will only contain strings.
-
getPreviouslyDefinedCategoryIds
Returns the category identifiers that were previously defined.- Returns:
- The set of defined category identifiers before the changed; may be
empty, but never
null
. This set will only contain strings.
-
getPreviouslyEnabledActivityIds
Returns the activity identifiers that were previously enabled.- Returns:
- The set of enabled activity identifiers before the changed; may be
empty, but never
null
. This set will only contain strings.
-
haveDefinedActivityIdsChanged
public boolean haveDefinedActivityIdsChanged()Returns whether or not the definedActivityIds property changed.- Returns:
true
, iff the definedActivityIds property changed.
-
haveDefinedCategoryIdsChanged
public boolean haveDefinedCategoryIdsChanged()Returns whether or not the definedCategoryIds property changed.- Returns:
true
, iff the definedCategoryIds property changed.
-
haveEnabledActivityIdsChanged
public boolean haveEnabledActivityIdsChanged()Returns whether or not the enabledActivityIds property changed.- Returns:
true
, iff the enabledActivityIds property changed.
-
haveEnabledNonExpressionControlledActivityIdsChanged
public boolean haveEnabledNonExpressionControlledActivityIdsChanged()Returns whether or not enabledActivityIds property changed and any of the changed IDs belongs to a non-expression-controlled activity.- Returns:
true
iff the enabledActivityIds property changed and any of the changed IDs belongs to a non-expression-controlled activity.- Since:
- 3.131
-