*
* @param conflict The conflict information
*/
public void populate(Conflict<? extends OsmPrimitive> conflict) {
this.my = conflict.getMy();
OsmPrimitive their = conflict.getTheir();
if (my instanceof Node) {
myCoords = ((Node)my).getCoor();
theirCoords = ((Node)their).getCoor();
} else {
myCoords = null;
theirCoords = null;
}
myDeletedState = conflict.isMyDeleted() || my.isDeleted();
theirDeletedState = their.isDeleted();
myReferrers = my.getDataSet() == null?Collections.<OsmPrimitive>emptyList():my.getReferrers();
theirReferrers = their.getDataSet() == null?Collections.<OsmPrimitive>emptyList():their.getReferrers();
coordMergeDecision = UNDECIDED;
deletedMergeDecision = UNDECIDED;
setChanged();
notifyObservers();