public class TeamStateChangeEvent extends Object implements ITeamStateChangeEvent
ITeamStateChangeEvent.
This class is not intended to be subclassed by clients.
| Constructor and Description |
|---|
TeamStateChangeEvent() |
TeamStateChangeEvent(ISubscriberChangeEvent[] deltas)
Convenience constructor for creating an event from a subscriber change.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changed(IResource resource)
The given resource has changed state.
|
IResource[] |
getAddedRoots()
Return the set of resources that were previously undecorated
but are now decorated.
|
IResource[] |
getChangedResources()
Return the set of resources whose decorated state has changed.
|
IResource[] |
getRemovedRoots()
Return the set of resources that were previously decorated
but are now undecorated.
|
boolean |
hasChange(IResource resource)
Return whether the resource has any state changes.
|
void |
rootAdded(IResource resource)
The given root resource has been added.
|
void |
rootRemoved(IResource resource)
The given root resource has been removed.
|
public TeamStateChangeEvent()
public TeamStateChangeEvent(ISubscriberChangeEvent[] deltas)
deltas - the set of subscriber changespublic void changed(IResource resource)
resource - the resource whose state has changedpublic void rootRemoved(IResource resource)
resource - the resourcepublic void rootAdded(IResource resource)
resource - the resourcepublic IResource[] getAddedRoots()
ITeamStateChangeEventgetAddedRoots in interface ITeamStateChangeEventpublic IResource[] getRemovedRoots()
ITeamStateChangeEventgetRemovedRoots in interface ITeamStateChangeEventpublic IResource[] getChangedResources()
ITeamStateChangeEventgetChangedResources in interface ITeamStateChangeEventpublic boolean hasChange(IResource resource)
ITeamStateChangeEventtrue if the resource is included in the set
of changes returned by ITeamStateChangeEvent.getChangedResources() or
if it is a descendant of a root that is present in a set
returned by ITeamStateChangeEvent.getAddedRoots() or ITeamStateChangeEvent.getRemovedRoots().hasChange in interface ITeamStateChangeEventresource - the resourceGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.