|
Eclipse Platform Release 3.1 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Provides addition API for accessing the SyncInfo in the set through
their resource's hierarchical relationships.
Events fired from a ISyncInfoTree will be instances of ISyncInfoTreeChangeEvent.
This interface is not intended to be implemented by clients. Clients
that need an instance of a set can use 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.
SyncInfoTree| Method Summary | |
|---|---|
SyncInfo[] |
getSyncInfos(IResource resource,
int depth)
Return the SyncInfo for each out-of-sync resource in the subtree rooted at the given resource
to the depth specified. |
SyncInfo[] |
getSyncInfos(org.eclipse.core.resources.mapping.ResourceTraversal[] traversals)
Return the sync info contained in this set that are contained in the given traversals. |
boolean |
hasMembers(IResource resource)
Return whether the given resource has any children in the sync set. |
IResource[] |
members(IResource resource)
Return the immediate children of the given resource who are either out-of-sync or contain out-of-sync resources. |
| Methods inherited from interface org.eclipse.team.core.synchronize.ISyncInfoSet |
|---|
addSyncSetChangedListener, getResources, getSyncInfo, getSyncInfos, isEmpty, iterator, removeSyncSetChangedListener, size |
| Method Detail |
public boolean hasMembers(IResource resource)
resource - the resource to check for children.
true if the resource has children in the set.
public SyncInfo[] getSyncInfos(IResource resource,
int depth)
SyncInfo for each out-of-sync resource in the subtree rooted at the given resource
to the depth specified. The depth is one of:
IResource.DEPTH_ZERO: the resource only,
IResource.DEPTH_ONE: the resource or its direct children,
IResource.DEPTH_INFINITE: the resource and all of it's descendants.
The default implementation makes use of getSyncInfo(IResource),
members(IResource) and getSyncInfos()
to provide the varying depths. Subclasses may override to optimize.
resource - the root of the resource subtreedepth - the depth of the subtree
SyncInfo for any out-of-sync resourcespublic IResource[] members(IResource resource)
resource - the parent resource
public SyncInfo[] getSyncInfos(org.eclipse.core.resources.mapping.ResourceTraversal[] traversals)
traversals - the traversals
|
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.