Package org.eclipse.team.core.diff
Interface IThreeWayDiff
- All Superinterfaces:
IDiff
- All Known Implementing Classes:
ThreeWayDiff
A three-way delta that describe the synchronization state between two
contributors and an ancestor. For simplicity, we refer to one of the
contributors as the local and the other as the remote. A three-way delta is
represented as a combination of two two-way deltas, one between the ancestor
and local and the other between the ancestor and remote. For a three-way
delta, clients can assume that the before state of both the local and remote
changes are the same.
- Since:
- 3.2
- Restriction:
- This interface is not intended to be implemented by clients.
Clients that need to create deltas should instead use
ThreeWayDiff
.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Constant (bit mask) indicating that there is both a local change and a remote change.static final int
Bit mask for extracting the synchronization direction.static final int
Constant (bit mask) indicating that there is a local change.static final int
Constant (bit mask) indicating that there is a local change. -
Method Summary
Modifier and TypeMethodDescriptionint
Return the direction of this three-way delta.Return the local change associated with this delta.Return the remote change associated with this delta.Methods inherited from interface org.eclipse.team.core.diff.IDiff
getKind, getPath, toDiffString
-
Field Details
-
OUTGOING
static final int OUTGOINGConstant (bit mask) indicating that there is a local change.- See Also:
-
INCOMING
static final int INCOMINGConstant (bit mask) indicating that there is a local change.- See Also:
-
CONFLICTING
static final int CONFLICTINGConstant (bit mask) indicating that there is both a local change and a remote change. This flag is equivalent toOUTGOING | INCOMING
.- See Also:
-
DIRECTION_MASK
static final int DIRECTION_MASKBit mask for extracting the synchronization direction.- See Also:
-
-
Method Details
-
getLocalChange
ITwoWayDiff getLocalChange()Return the local change associated with this delta. If there is no local change, either a delta with kindIDiff.NO_CHANGE
is returned ornull
may be returned.- Returns:
- the local change associated with this delta or
null
-
getRemoteChange
ITwoWayDiff getRemoteChange()Return the remote change associated with this delta. If there is no remote change, either a delta with kindIDiff.NO_CHANGE
is returned ornull
may be returned.- Returns:
- the remote change associated with this delta or
null
-
getDirection
int getDirection()Return the direction of this three-way delta.- Returns:
- the direction of this three-way delta
- See Also:
-