Changeset 8444 in josm for trunk/src/org/openstreetmap/josm/command/conflict
- Timestamp:
- 2015-06-02T16:41:37+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/command/conflict
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/conflict/ConflictAddCommand.java
r6887 r8444 61 61 @Override 62 62 public void undoCommand() { 63 if (! 63 if (!Main.map.mapView.hasLayer(getLayer())) { 64 64 Main.warn(tr("Layer ''{0}'' does not exist any more. Cannot remove conflict for object ''{1}''.", 65 65 getLayer().getName(), -
trunk/src/org/openstreetmap/josm/command/conflict/ConflictResolveCommand.java
r6887 r8444 45 45 */ 46 46 protected void rememberConflict(Conflict<?> c) { 47 if (! 47 if (!resolvedConflicts.hasConflictForMy(c.getMy())) { 48 48 resolvedConflicts.add(c); 49 49 } … … 68 68 super.undoCommand(); 69 69 70 if (! 70 if (!Main.map.mapView.hasLayer(getLayer())) { 71 71 Main.warn(tr("Cannot undo command ''{0}'' because layer ''{1}'' is not present any more", 72 72 this.toString(), -
trunk/src/org/openstreetmap/josm/command/conflict/RelationMemberConflictResolverCommand.java
r6887 r8444 74 74 public void undoCommand() { 75 75 OsmDataLayer layer = getLayer(); 76 if (! 76 if (!Main.map.mapView.hasLayer(layer)) { 77 77 Main.warn(tr("Cannot undo command ''{0}'' because layer ''{1}'' is not present any more", 78 78 this.toString(), -
trunk/src/org/openstreetmap/josm/command/conflict/TagConflictResolveCommand.java
r6887 r8444 84 84 // 85 85 for (TagMergeItem item: mergeItems) { 86 if (! 86 if (!item.getMergeDecision().equals(MergeDecisionType.UNDECIDED)) { 87 87 item.applyToMyPrimitive(conflict.getMy()); 88 88 } -
trunk/src/org/openstreetmap/josm/command/conflict/WayNodesConflictResolverCommand.java
r6887 r8444 58 58 // 59 59 for (Node n:mergedNodeList) { 60 if (! 60 if (!getLayer().data.getNodes().contains(n)) { 61 61 Main.warn(tr("Main dataset does not include node {0}", n.toString())); 62 62 }
Note:
See TracChangeset
for help on using the changeset viewer.