|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
An event generated when a SyncInfoSet collection is changed. The event contains
a description of the changes which include added, changed and removed resources.
In some cases, (e.g. when the change is too complicated to be efficiently described
using the mechanisms provided by this interface) the event will be a reset. In these
cases, the client should ignore any other contents of the event and recalculate
from scratch any state that is derived from the SyncInfoSet from
which the event originated.
The mix of return types, SyncInfo and IResourceis required as a result of an optimization
included in SyncInfoSet collections that doesn't maintain SyncInfo objects
for in-sync resources.
SyncInfoSet.addSyncSetChangedListener(ISyncInfoSetChangeListener),
ISyncInfoSetChangeListener| Method Summary | |
|---|---|
SyncInfo[] |
getAddedResources()
Returns newly added out-of-sync SyncInfo elements. |
SyncInfo[] |
getChangedResources()
Returns changed SyncInfo elements. |
IResource[] |
getRemovedResources()
Returns the removed IResource elements for which the set no longer
contains on out-of-sync SyncInfo. |
SyncInfoSet |
getSet()
Returns the SyncInfoSet that generated these events. |
| Method Detail |
public SyncInfo[] getAddedResources()
SyncInfo elements.
SyncInfo elements or an empty list if this event
doesn't contain added resources.public SyncInfo[] getChangedResources()
SyncInfo elements. The returned elements
are still out-of-sync.
SyncInfo elements or an empty list if this event
doesn't contain changes resources.public IResource[] getRemovedResources()
IResource elements for which the set no longer
contains on out-of-sync SyncInfo. The returned elements
are all in-sync resources.
SyncInfo elements or an empty list if this event
doesn't contain removed resources.public SyncInfoSet getSet()
SyncInfoSet that generated these events.
SyncInfoSet that generated these events.
|
Eclipse Platform Release 3.3 |
|||||||||||
| 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, 2007. All rights reserved.