public interface IResourceDiffTree extends IDiffTree
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.ResourceDiffTree
instead.P_BUSY_HINT, P_HAS_DESCENDANT_CONFLICTS
Modifier and Type | Method and Description |
---|---|
void |
accept(ResourceTraversal[] traversals,
IDiffVisitor visitor)
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(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.
|
boolean |
hasMatchingDiffs(ResourceTraversal[] traversals,
FastDiffFilter filter)
Return whether the this diff tree contains any diffs that match the given filter
within the given traversals.
|
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.
|
accept, addDiffChangeListener, clearBusy, countFor, getChildren, getDiff, getProperty, hasMatchingDiffs, isEmpty, removeDiffChangeListener, setBusy, size
IDiff getDiff(IResource resource)
resource
- a resourcenull
if
the resource does not have any changes.IResource getResource(IDiff diff)
diff
- a diffvoid accept(ResourceTraversal[] traversals, IDiffVisitor visitor)
traversals
- the set of traversals whose diffs are to be visitedvisitor
- a diff visitorIDiff[] getDiffs(ResourceTraversal[] traversals)
traversals
- the traversalsIDiff[] getDiffs(IResource resource, int depth)
resource
- the resourcedepth
- the depthIResource[] members(IResource resource)
resource
- a resourceIResource[] getAffectedResources()
boolean hasMatchingDiffs(ResourceTraversal[] traversals, FastDiffFilter filter)
traversals
- the traversalsfilter
- the diff node filter
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.