public class ThreeWayDiff extends Diff implements IThreeWayDiff
IThreeWayDiff.
This class is not intended to be subclasses by clients.
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 |
|---|---|
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.
|
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()
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 DiffGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.