modified.add(my);
}
@Override
public void undoCommand() {
OsmDataLayer layer = getLayer();
if (! Main.map.mapView.hasLayer(layer)) {
Main.warn(tr("Cannot undo command ''{0}'' because layer ''{1}'' is not present any more",
this.toString(),
layer.toString()
));
return;
}
Main.map.mapView.setActiveLayer(layer);
OsmDataLayer editLayer = Main.main.getEditLayer();
// restore the former state
//
super.undoCommand();
// restore a conflict if necessary
//
if (!editLayer.getConflicts().hasConflictForMy(my)) {
editLayer.getConflicts().add(my,their);
}
}