|
Eclipse Platform Release 3.2 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
A resource diff tree provides access to a tree of IDiff instances
that either contain IResourceDiff
nodes or IThreeWayDiff nodes that contain
IResourceDiff nodes as the local and
remote changes. For efficiency reasons, the tree only provides diffs for
resources that have changes. Resources that do not contain a change but are
returned from the tree will contain children in the set.
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.
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.team.core.diff.IDiffTree |
|---|
P_BUSY_HINT, P_HAS_DESCENDANT_CONFLICTS |
| Method Summary | |
|---|---|
void |
accept(IDiffVisitor visitor,
org.eclipse.core.resources.mapping.ResourceTraversal[] traversals)
Visit all diffs in this tree that are covered by the given traversals. |
IResource[] |
getAffectedResources()
Return all resources that contain diffs in this diff tree. |
IDiff |
getDiff(IResource resource)
Return the diff for the given resource. |
IDiff[] |
getDiffs(IResource resource,
int depth)
Return all the diffs in the tree that are found for the given resource when traversed to the given depth. |
IDiff[] |
getDiffs(org.eclipse.core.resources.mapping.ResourceTraversal[] traversals)
Return all the diffs in the tree that are contained in the given traversals. |
IResource |
getResource(IDiff diff)
Return the resource associated with the given diff. |
IResource[] |
members(IResource resource)
Return the members of the given resource that either have diffs in this tree of contain descendants that have diffs in this tree. |
| Methods inherited from interface org.eclipse.team.core.diff.IDiffTree |
|---|
accept, addDiffChangeListener, clearBusy, countFor, getChildren, getDiff, getProperty, isEmpty, removeDiffChangeListener, setBusy, size |
| Method Detail |
public IDiff getDiff(IResource resource)
resource - a resource
null if
the resource does not have any changes.public IResource getResource(IDiff diff)
diff - a diff
public void accept(IDiffVisitor visitor,
org.eclipse.core.resources.mapping.ResourceTraversal[] traversals)
throws CoreException
visitor - a diff visitortraversals - the set of traversals whose diffs are to be visited
CoreExceptionpublic IDiff[] getDiffs(org.eclipse.core.resources.mapping.ResourceTraversal[] traversals)
traversals - the traversals
public IDiff[] getDiffs(IResource resource,
int depth)
resource - the resourcedepth - the depth
public IResource[] members(IResource resource)
resource - a resource
public IResource[] getAffectedResources()
|
Eclipse Platform Release 3.2 |
|||||||||||
| 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.