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, hashCodepublic 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()
IThreeWayDiffIDiff.NO_CHANGE is returned or null
may be returned.getLocalChange in interface IThreeWayDiffnullpublic ITwoWayDiff getRemoteChange()
IThreeWayDiffIDiff.NO_CHANGE is returned or null
may be returned.getRemoteChange in interface IThreeWayDiffnullpublic int getDirection()
IThreeWayDiffgetDirection in interface IThreeWayDiffIThreeWayDiff.INCOMING,
IThreeWayDiff.OUTGOING,
IThreeWayDiff.CONFLICTINGpublic String toDiffString()
IDifftoDiffString in interface IDifftoDiffString in class Diff
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.