Package 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:
- Restriction:
- This interface is not intended to be implemented by clients.
Instead, clients can subclass
Diff
.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Diff kind constant (bit mask) indicating that the resource has been added to its parent.static final int
Diff kind constant (bit mask) indicating that the resource has been changed.static final int
Diff kind constant (bit mask) indicating that the resource has not been changed in any way.static final int
Diff kind constant (bit mask) indicating that the resource has been removed from its parent. -
Method Summary
-
Field Details
-
NO_CHANGE
static final int NO_CHANGEDiff kind constant (bit mask) indicating that the resource has not been changed in any way.- See Also:
-
ADD
static final int ADDDiff 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:
-
REMOVE
static final int REMOVEDiff 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:
-
CHANGE
static final int CHANGEDiff 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:
-
-
Method Details
-
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 ofADDED
,REMOVED
,CHANGED
. -
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
-