|
Eclipse Platform Release 3.1 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
A dynamic collection of SyncInfo objects that provides
change notification to registered listeners. Batching of change notifications
can be accomplished using the beginInput/endInput methods.
This interface is not intended to be implemented by clients. Clients
that need an instance of a set can use either a SyncInfoSet or
SyncInfoTree
EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is a guarantee neither that this API will work nor that it will remain the same. Please do not use this API without consulting with the Platform/Team team.
SyncInfoSet,
SyncInfoTree| Method Summary | |
|---|---|
void |
addSyncSetChangedListener(ISyncInfoSetChangeListener listener)
Registers the given listener for sync info set notifications. |
IResource[] |
getResources()
Return all out-of-sync resources contained in this set. |
SyncInfo |
getSyncInfo(IResource resource)
Return the SyncInfo for the given resource or null
if the resource is not contained in the set. |
SyncInfo[] |
getSyncInfos()
Return an array of SyncInfo for all out-of-sync resources that are contained by the set. |
boolean |
isEmpty()
Return whether the set is empty. |
Iterator |
iterator()
Return an iterator over all SyncInfo
contained in this set. |
void |
removeSyncSetChangedListener(ISyncInfoSetChangeListener listener)
Removes the given listener from participant notifications. |
int |
size()
Return the number of out-of-sync resources contained in this set. |
| Method Detail |
public SyncInfo[] getSyncInfos()
SyncInfo for all out-of-sync resources that are contained by the set.
SyncInfopublic IResource[] getResources()
getSyncInfos() to determine the resources contained in the set.
Subclasses may override to optimize.
public SyncInfo getSyncInfo(IResource resource)
SyncInfo for the given resource or null
if the resource is not contained in the set.
resource - the resource
SyncInfo for the resource or null if
the resource is in-sync or doesn't have synchronization information in this set.public int size()
#countFor(int, int)public boolean isEmpty()
true if the set is emptypublic Iterator iterator()
SyncInfo
contained in this set.
SyncInfo
contained in this set.public void addSyncSetChangedListener(ISyncInfoSetChangeListener listener)
listener - listener to registerpublic void removeSyncSetChangedListener(ISyncInfoSetChangeListener listener)
listener - listener to remove
|
Eclipse Platform Release 3.1 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.