Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.team.core.mapping
Interface IResourceDiffTree

All Superinterfaces:
IDiffTree
All Known Implementing Classes:
ResourceDiffTree

public interface IResourceDiffTree
extends IDiffTree

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.

Since:
3.2
Restriction:
This interface is not intended to be implemented by clients. Clients can use ResourceDiffTree instead.

Field Summary
 
Fields inherited from interface org.eclipse.team.core.diff. IDiffTree
P_BUSY_HINT, P_HAS_DESCENDANT_CONFLICTS
 
Method Summary
 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.
 
Methods inherited from interface org.eclipse.team.core.diff. IDiffTree
accept, addDiffChangeListener, clearBusy, countFor, getChildren, getDiff, getProperty, hasMatchingDiffs, isEmpty, removeDiffChangeListener, setBusy, size
 

Method Detail

getDiff


IDiff getDiff(
IResource resource)
Return the diff for the given resource. This method is a convenience method that uses the path of the resource to access the diff.

Parameters:
resource - a resource
Returns:
the diff associated with the resource or null if the resource does not have any changes.

getResource


IResource getResource(
IDiff diff)
Return the resource associated with the given diff. This method will only return meaningful results for diffs which were obtained from this tree.

Parameters:
diff - a diff
Returns:
the resource associated with the given diff

accept

void accept(
ResourceTraversal[] traversals,
            
IDiffVisitor visitor)
Visit all diffs in this tree that are covered by the given traversals.

Parameters:
traversals - the set of traversals whose diffs are to be visited
visitor - a diff visitor

getDiffs


IDiff[] getDiffs(
ResourceTraversal[] traversals)
Return all the diffs in the tree that are contained in the given traversals.

Parameters:
traversals - the traversals
Returns:
all the diffs in the tree that are contained in the given traversals

getDiffs


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.

Parameters:
resource - the resource
depth - the depth
Returns:
all the diffs in the tree that are found for the given resource when traversed to the given depth

members


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.

Parameters:
resource - a resource
Returns:
the members of the given resource that either have diffs in this tree of contain descendants that have diffs in this tree

getAffectedResources


IResource[] getAffectedResources()
Return all resources that contain diffs in this diff tree.

Returns:
all resources that contain diffs in this diff tree

hasMatchingDiffs

boolean hasMatchingDiffs(
ResourceTraversal[] traversals,
                         
FastDiffFilter filter)
Return whether the this diff tree contains any diffs that match the given filter within the given traversals.

Parameters:
traversals - the traversals
filter - the diff node filter
Returns:
whether the given diff tree contains any deltas that match the given filter

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire