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.diff
Interface IDiff

All Known Subinterfaces:
IResourceDiff, IThreeWayDiff, ITwoWayDiff
All Known Implementing Classes:
Diff, ResourceDiff, ThreeWayDiff, TwoWayDiff

public interface IDiff

A diff describes differences between two or more model objects.

Since:
3.2
See Also:
ITwoWayDiff, IThreeWayDiff
Restriction:
This interface is not intended to be implemented by clients. Instead, clients can subclass Diff.

Field Summary
static int ADD
          Diff kind constant (bit mask) indicating that the resource has been added to its parent.
static int CHANGE
          Diff kind constant (bit mask) indicating that the resource has been changed.
static int NO_CHANGE
          Diff kind constant (bit mask) indicating that the resource has not been changed in any way.
static int REMOVE
          Diff kind constant (bit mask) indicating that the resource has been removed from its parent.
 
Method Summary
 int getKind ()
          Returns the kind of this diff.
  IPath getPath ()
          Returns the full, absolute path of the object to which the diff applies with respect to the model root.
  String toDiffString ()
          Return a string that describes the difference represented by this node.
 

Field Detail

NO_CHANGE

static final int NO_CHANGE
Diff kind constant (bit mask) indicating that the resource has not been changed in any way.

See Also:
getKind(), Constant Field Values

ADD

static final int ADD
Diff kind constant (bit mask) indicating that the resource has been added to its parent. That is, one that appears in the "after" state, not in the "before" one.

See Also:
getKind(), Constant Field Values

REMOVE

static final int REMOVE
Diff kind constant (bit mask) indicating that the resource has been removed from its parent. That is, one that appears in the "before" state, not in the "after" one.

See Also:
getKind(), Constant Field Values

CHANGE

static final int CHANGE
Diff kind constant (bit mask) indicating that the resource has been changed. That is, one that appears in both the "before" and "after" states.

See Also:
getKind(), Constant Field Values
Method Detail

getPath


IPath getPath()
Returns the full, absolute path of the object to which the diff applies with respect to the model root.

Note: the returned path never has a trailing separator.

Returns:
the full, absolute path of this diff

getKind

int getKind()
Returns the kind of this diff. Normally, one of ADDED, REMOVED, CHANGED.

Returns:
the kind of this diff
See Also:
ADD, REMOVE, CHANGE

toDiffString


String toDiffString()
Return a string that describes the difference represented by this node.

Returns:
a string that describes the difference represented by this node

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