|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.team.core.diff.provider.Diff
Abstract implementation of IDiff
that can be subclassed by
clients.
ITwoWayDiff
,
IThreeWayDiff
Field Summary | |
---|---|
static int |
KIND_MASK
Constant (bit mask) that defines the area of the status that is reserved for use by this abstract class for encoding the kind of the diff. |
Fields inherited from interface org.eclipse.team.core.diff.IDiff |
---|
ADD, CHANGE, NO_CHANGE, REMOVE |
Constructor Summary | |
---|---|
protected |
Diff(IPath path,
int status)
Create a diff node. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
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. |
int |
getStatus()
Return the status of the diff node. |
int |
hashCode()
|
String |
toDiffString()
Return a string that describes the difference represented by this node. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int KIND_MASK
getStatus()
,
Constant Field ValuesConstructor Detail |
protected Diff(IPath path, int status)
path
- the path of the diffstatus
- the status of the diff. The kind should be encoded in the
status along with any additional flags required by a subclass.Method Detail |
public IPath getPath()
IDiff
Note: the returned path never has a trailing separator.
getPath
in interface IDiff
public int getKind()
IDiff
ADDED
, REMOVED
, CHANGED
.
getKind
in interface IDiff
IDiff.ADD
,
IDiff.REMOVE
,
IDiff.CHANGE
public final int getStatus()
KIND_MASK
.
public String toDiffString()
IDiff
toDiffString
in interface IDiff
public int hashCode()
public boolean equals(Object obj)
|
Eclipse Platform Release 3.3 |
|||||||||||
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, 2007. All rights reserved.