Class SyncInfoSetChangeEvent
- java.lang.Object
-
- org.eclipse.team.core.synchronize.SyncInfoSetChangeEvent
-
- All Implemented Interfaces:
ISyncInfoSetChangeEvent
public class SyncInfoSetChangeEvent extends Object implements ISyncInfoSetChangeEvent
This event keeps track of the changes in aSyncInfoSet- Since:
- 3.5
- See Also:
SyncInfoSet
-
-
Constructor Summary
Constructors Constructor Description SyncInfoSetChangeEvent(SyncInfoSet set)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadded(SyncInfo info)voidchanged(SyncInfo info)voiderrorOccurred(ITeamStatus status)SyncInfo[]getAddedResources()Returns newly added out-of-syncSyncInfoelements.SyncInfo[]getChangedResources()Returns changedSyncInfoelements.ITeamStatus[]getErrors()IResource[]getRemovedResources()Returns the removedIResourceelements for which the set no longer contains on out-of-syncSyncInfo.SyncInfoSetgetSet()Returns theSyncInfoSetthat generated these events.booleanisEmpty()booleanisReset()voidremoved(IResource resource)voidreset()
-
-
-
Constructor Detail
-
SyncInfoSetChangeEvent
public SyncInfoSetChangeEvent(SyncInfoSet set)
-
-
Method Detail
-
added
public void added(SyncInfo info)
-
removed
public void removed(IResource resource)
-
changed
public void changed(SyncInfo info)
-
getAddedResources
public SyncInfo[] getAddedResources()
Description copied from interface:ISyncInfoSetChangeEventReturns newly added out-of-syncSyncInfoelements.- Specified by:
getAddedResourcesin interfaceISyncInfoSetChangeEvent- Returns:
- newly added
SyncInfoelements or an empty list if this event doesn't contain added resources.
-
getChangedResources
public SyncInfo[] getChangedResources()
Description copied from interface:ISyncInfoSetChangeEventReturns changedSyncInfoelements. The returned elements are still out-of-sync.- Specified by:
getChangedResourcesin interfaceISyncInfoSetChangeEvent- Returns:
- changed
SyncInfoelements or an empty list if this event doesn't contain changes resources.
-
getRemovedResources
public IResource[] getRemovedResources()
Description copied from interface:ISyncInfoSetChangeEventReturns the removedIResourceelements for which the set no longer contains on out-of-syncSyncInfo. The returned elements are all in-sync resources.- Specified by:
getRemovedResourcesin interfaceISyncInfoSetChangeEvent- Returns:
- removed
SyncInfoelements or an empty list if this event doesn't contain removed resources.
-
getSet
public SyncInfoSet getSet()
Description copied from interface:ISyncInfoSetChangeEventReturns theSyncInfoSetthat generated these events.- Specified by:
getSetin interfaceISyncInfoSetChangeEvent- Returns:
- the
SyncInfoSetthat generated these events.
-
reset
public void reset()
-
isReset
public boolean isReset()
-
isEmpty
public boolean isEmpty()
-
errorOccurred
public void errorOccurred(ITeamStatus status)
-
getErrors
public ITeamStatus[] getErrors()
-
-