public class ThreeWayDiff extends Diff implements IThreeWayDiff
IThreeWayDiff
.CONFLICTING, DIRECTION_MASK, INCOMING, OUTGOING
Constructor and Description |
---|
ThreeWayDiff(ITwoWayDiff localChange,
ITwoWayDiff remoteChange)
Create a three-way delta from the two changes.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getDirection()
Return the direction of this three-way delta.
|
ITwoWayDiff |
getLocalChange()
Return the local change associated with this delta.
|
ITwoWayDiff |
getRemoteChange()
Return the remote change associated with this delta.
|
String |
toDiffString()
Return a string that describes the difference represented by
this node.
|
getKind, getPath, getStatus, hashCode
public ThreeWayDiff(ITwoWayDiff localChange, ITwoWayDiff remoteChange)
null
but at least one must be non-null
).localChange
- the local change in the model object or null
if there is no local changeremoteChange
- the remote change in the model object or null
if there is no local changepublic ITwoWayDiff getLocalChange()
IThreeWayDiff
IDiff.NO_CHANGE
is returned or null
may be returned.getLocalChange
in interface IThreeWayDiff
null
public ITwoWayDiff getRemoteChange()
IThreeWayDiff
IDiff.NO_CHANGE
is returned or null
may be returned.getRemoteChange
in interface IThreeWayDiff
null
public int getDirection()
IThreeWayDiff
getDirection
in interface IThreeWayDiff
IThreeWayDiff.INCOMING
,
IThreeWayDiff.OUTGOING
,
IThreeWayDiff.CONFLICTING
public String toDiffString()
IDiff
toDiffString
in interface IDiff
toDiffString
in class Diff
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.