public final class ActivityManagerEvent extends Object
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.
IActivityManagerListener.activityManagerChanged(ActivityManagerEvent)
Constructor and Description |
---|
ActivityManagerEvent(IActivityManager activityManager,
boolean definedActivityIdsChanged,
boolean definedCategoryIdsChanged,
boolean enabledActivityIdsChanged,
Set previouslyDefinedActivityIds,
Set previouslyDefinedCategoryIds,
Set previouslyEnabledActivityIds)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
IActivityManager |
getActivityManager()
Returns the instance of the interface that changed.
|
Set |
getPreviouslyDefinedActivityIds()
Returns the activity identifiers that were previously defined.
|
Set |
getPreviouslyDefinedCategoryIds()
Returns the category identifiers that were previously defined.
|
Set |
getPreviouslyEnabledActivityIds()
Returns the activity identifiers that were previously enabled.
|
boolean |
haveDefinedActivityIdsChanged()
Returns whether or not the definedActivityIds property changed.
|
boolean |
haveDefinedCategoryIdsChanged()
Returns whether or not the definedCategoryIds property changed.
|
boolean |
haveEnabledActivityIdsChanged()
Returns whether or not the enabledActivityIds property changed.
|
public ActivityManagerEvent(IActivityManager activityManager, boolean definedActivityIdsChanged, boolean definedCategoryIdsChanged, boolean enabledActivityIdsChanged, Set previouslyDefinedActivityIds, Set previouslyDefinedCategoryIds, Set previouslyEnabledActivityIds)
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 of String
. This set must be
null
if definedActivityIdsChanged is
false
and must not be null if
definedActivityIdsChanged is true
.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 of String
. This set must be
null
if definedCategoryIdsChanged is
false
and must not be null if
definedCategoryIdsChanged is true
.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 of String
. This set must be
null
if enabledActivityIdsChanged is
false
and must not be null if
enabledActivityIdsChanged is true
.public IActivityManager getActivityManager()
null
.public final Set getPreviouslyDefinedActivityIds()
null
. This set will only
contain strings.public final Set getPreviouslyDefinedCategoryIds()
null
. This set will only
contain strings.public final Set getPreviouslyEnabledActivityIds()
null
. This set will only
contain strings.public boolean haveDefinedActivityIdsChanged()
true
, iff the definedActivityIds property changed.public boolean haveDefinedCategoryIdsChanged()
true
, iff the definedCategoryIds property changed.public boolean haveEnabledActivityIdsChanged()
true
, iff the enabledActivityIds property changed.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.