Changeset 6248 in josm for trunk/src/org/openstreetmap/josm/command
- Timestamp:
- 2013-09-23T16:47:50+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/command
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/ConflictAddCommand.java
r5077 r6248 49 49 @Override public void undoCommand() { 50 50 if (! Main.map.mapView.hasLayer(getLayer())) { 51 System.out.println(tr("Warning:Layer ''{0}'' does not exist any more. Cannot remove conflict for object ''{1}''.",51 Main.warn(tr("Layer ''{0}'' does not exist any more. Cannot remove conflict for object ''{1}''.", 52 52 getLayer().getName(), 53 53 conflict.getMy().getDisplayName(DefaultNameFormatter.getInstance()) -
trunk/src/org/openstreetmap/josm/command/ConflictResolveCommand.java
r5816 r6248 61 61 62 62 if (! Main.map.mapView.hasLayer(getLayer())) { 63 System.out.println(tr("Cannot undo command ''{0}'' because layer ''{1}'' is not present any more",63 Main.warn(tr("Cannot undo command ''{0}'' because layer ''{1}'' is not present any more", 64 64 this.toString(), 65 65 getLayer().toString() -
trunk/src/org/openstreetmap/josm/command/RelationMemberConflictResolverCommand.java
r5881 r6248 81 81 public void undoCommand() { 82 82 if (! Main.map.mapView.hasLayer(layer)) { 83 System.out.println(tr("Cannot undo command ''{0}'' because layer ''{1}'' is not present any more",83 Main.warn(tr("Cannot undo command ''{0}'' because layer ''{1}'' is not present any more", 84 84 this.toString(), 85 85 layer.toString() -
trunk/src/org/openstreetmap/josm/command/WayNodesConflictResolverCommand.java
r5903 r6248 9 9 import javax.swing.Icon; 10 10 11 import org.openstreetmap.josm.Main; 11 12 import org.openstreetmap.josm.data.conflict.Conflict; 12 13 import org.openstreetmap.josm.data.osm.Node; … … 54 55 super.executeCommand(); 55 56 56 // replace the list of nodes of 'my' way by the list of merged 57 // nodes 57 // replace the list of nodes of 'my' way by the list of merged nodes 58 58 // 59 59 for (Node n:mergedNodeList) { 60 60 if (! getLayer().data.getNodes().contains(n)) { 61 System.out.println(tr("Main dataset does not include node {0}", n.toString()));61 Main.warn(tr("Main dataset does not include node {0}", n.toString())); 62 62 } 63 63 }
Note:
See TracChangeset
for help on using the changeset viewer.