public final class EnabledViewpointChangedEvent extends ViewpointManagerEvent
IViewpointManager
.
This class is not intended to be extended by clients.
ENABLE_VIEWPOINT_CHANGED, REGISTER, REGISTER_VIEWPONT_ELEMENT, UNREGISTER, UNREGISTER_VIEWPONT_ELEMENT, VIEWPOINT_CHANGED
Constructor and Description |
---|
EnabledViewpointChangedEvent(IViewpointManager manager,
boolean enabledViewpointChanged,
Viewpoint enabledViewpoint,
Viewpoint previouslyEnabledViewpoint,
boolean viewpointEnabledActivityIdsChanged,
java.util.Set<java.lang.String> viewpointEnabledActivityIds,
java.util.Set<java.lang.String> viewpointPreviouslyEnabledActivityIds,
java.util.Set<java.lang.String> viewpointElementTypesChanged)
Constructs a new
ViewpointManagerChangedEvent |
Modifier and Type | Method and Description |
---|---|
Viewpoint |
getPreviouslyEnabledViewpoint()
Returns the
Viewpoint that was previously enabled. |
java.util.Set<java.lang.String> |
getViewpointElementTypesChanged()
Returns a set of viewpoint element types which have changed.
|
java.util.Set<java.lang.String> |
getViewpointEnabledActivityIds()
Returns the activity identifiers that are currently enabled.
|
java.util.Set<java.lang.String> |
getViewpointPreviouslyEnabledActivityIds()
Returns the activity identifiers that were previously enabled for the currently
enabled viewpoint.
|
boolean |
hasEnabledViewpointChanged()
Returns whether or not the enabled viewpoint as changed.
|
boolean |
haveViewpointEnabledActivityIdsChanged()
Returns whether or not the viewpoint enabled activity IDs have changed.
|
getViewpointManager
getEventType, getViewpoint
public EnabledViewpointChangedEvent(IViewpointManager manager, boolean enabledViewpointChanged, Viewpoint enabledViewpoint, Viewpoint previouslyEnabledViewpoint, boolean viewpointEnabledActivityIdsChanged, java.util.Set<java.lang.String> viewpointEnabledActivityIds, java.util.Set<java.lang.String> viewpointPreviouslyEnabledActivityIds, java.util.Set<java.lang.String> viewpointElementTypesChanged)
ViewpointManagerChangedEvent
manager
- the IViewpointManager
that changedenabledViewpointChanged
- true
if the enabled
viewpoint has changed, false
otherwiseenabledViewpoint
- the new enabled Viewpoint
previouslyEnabledViewpoint
- the previously enabled Viewpoint
viewpointEnabledActivityIdsChanged
- true
if the enabled viewpoint's
enabled activity IDs have changed, false
otherwiseviewpointEnabledActivityIds
- the viewpoint enabled activity IDsviewpointPreviouslyEnabledActivityIds
- the viewpoint previously enabled activity IDsviewpointElementTypesChanged
- public java.util.Set<java.lang.String> getViewpointPreviouslyEnabledActivityIds()
null
. This set will only
contain strings.public java.util.Set<java.lang.String> getViewpointEnabledActivityIds()
null
. This set will only
contain strings.public boolean haveViewpointEnabledActivityIdsChanged()
true
if the viewpoint enabled activity IDs have changed,
false
otherwisepublic boolean hasEnabledViewpointChanged()
true
if the enabled viewpoint has changed,
false
otherwisepublic Viewpoint getPreviouslyEnabledViewpoint()
Viewpoint
that was previously enabled.Viewpoint
that was previously enabledpublic java.util.Set<java.lang.String> getViewpointElementTypesChanged()