Changeset 35 in josm for src/org/openstreetmap/josm/command
- Timestamp:
- 2005-12-28T01:29:01+01:00 (20 years ago)
- Location:
- src/org/openstreetmap/josm/command
- Files:
-
- 3 edited
-
AddCommand.java (modified) (2 diffs)
-
ChangeKeyValueCommand.java (modified) (2 diffs)
-
DeleteCommand.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/command/AddCommand.java
r31 r35 6 6 import org.openstreetmap.josm.data.osm.OsmPrimitive; 7 7 import org.openstreetmap.josm.data.osm.visitor.AddVisitor; 8 import org.openstreetmap.josm.data.osm.visitor.DeleteVisitor;9 8 10 9 /** … … 39 38 40 39 public void undoCommand() { 41 osm. visit(new DeleteVisitor(ds));40 osm.setDeleted(true); 42 41 } 43 42 -
src/org/openstreetmap/josm/command/ChangeKeyValueCommand.java
r33 r35 55 55 for (OsmPrimitive osm : objects) { 56 56 oldProperties.add(osm.keys == null ? null : new HashMap<Key, String>(osm.keys)); 57 oldModified.add(osm.modified); 58 osm.modified = true; 57 oldModified.add(osm.modifiedProperties); 58 osm.modifiedProperties = true; 59 59 } 60 60 … … 81 81 for (OsmPrimitive osm : objects) { 82 82 osm.keys = it.next(); 83 osm.modified = itMod.next(); 83 osm.modifiedProperties = itMod.next(); 84 84 } 85 85 } -
src/org/openstreetmap/josm/command/DeleteCommand.java
r31 r35 8 8 import org.openstreetmap.josm.data.osm.visitor.AddVisitor; 9 9 import org.openstreetmap.josm.data.osm.visitor.CollectBackReferencesVisitor; 10 import org.openstreetmap.josm.data.osm.visitor.DeleteVisitor;11 10 import org.openstreetmap.josm.data.osm.visitor.Visitor; 12 11 … … 35 34 36 35 public void executeCommand() { 37 Visitor v = new DeleteVisitor(ds);38 36 for (OsmPrimitive osm : data) 39 osm. visit(v);37 osm.setDeleted(true); 40 38 } 41 39
Note:
See TracChangeset
for help on using the changeset viewer.
