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()
ITeamStateChangeEvent
getAddedRoots
in interface ITeamStateChangeEvent
public IResource[] getRemovedRoots()
ITeamStateChangeEvent
getRemovedRoots
in interface ITeamStateChangeEvent
public IResource[] getChangedResources()
ITeamStateChangeEvent
getChangedResources
in interface ITeamStateChangeEvent
public boolean hasChange(IResource resource)
ITeamStateChangeEvent
true
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 ITeamStateChangeEvent
resource
- the resource
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.