Changeset 3152 in josm for trunk/src/org/openstreetmap/josm/command
- Timestamp:
- 2010-03-23T13:02:14+01:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/command
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/ChangeCommand.java
r2025 r3152 14 14 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; 15 15 import org.openstreetmap.josm.gui.DefaultNameFormatter; 16 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 16 17 import org.openstreetmap.josm.tools.ImageProvider; 17 18 … … 27 28 private final OsmPrimitive newOsm; 28 29 30 29 31 public ChangeCommand(OsmPrimitive osm, OsmPrimitive newOsm) { 30 32 super(); 33 this.osm = osm; 34 this.newOsm = newOsm; 35 } 36 37 public ChangeCommand(OsmDataLayer layer, OsmPrimitive osm, OsmPrimitive newOsm) { 38 super(layer); 31 39 this.osm = osm; 32 40 this.newOsm = newOsm; … … 47 55 String msg = ""; 48 56 switch(OsmPrimitiveType.from(osm)) { 49 50 51 57 case NODE: msg = marktr("Change node {0}"); break; 58 case WAY: msg = marktr("Change way {0}"); break; 59 case RELATION: msg = marktr("Change relation {0}"); break; 52 60 } 53 61 return new DefaultMutableTreeNode( -
trunk/src/org/openstreetmap/josm/command/DeleteCommand.java
r3055 r3152 407 407 chunks.add(n1); 408 408 chunks.add(n2); 409 return SplitWayAction.splitWay( ws.way, chunks).getCommand();409 return SplitWayAction.splitWay(layer,ws.way, chunks).getCommand(); 410 410 } 411 411 }
Note: See TracChangeset
for help on using the changeset viewer.