Changeset 8941 in josm for trunk/src/org/openstreetmap/josm/command
- Timestamp:
- 2015-10-24T21:32:35+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/ChangePropertyCommand.java
r8846 r8941 17 17 import javax.swing.Icon; 18 18 19 import org.openstreetmap.josm. Main;19 import org.openstreetmap.josm.data.osm.DataSet; 20 20 import org.openstreetmap.josm.data.osm.OsmPrimitive; 21 21 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; … … 106 106 } 107 107 108 @Override public boolean executeCommand() { 109 Main.main.getCurrentDataSet().beginUpdate(); 108 @Override 109 public boolean executeCommand() { 110 final DataSet dataSet = objects.get(0).getDataSet(); 111 dataSet.beginUpdate(); 110 112 try { 111 113 super.executeCommand(); // save old … … 129 131 return true; 130 132 } finally { 131 Main.main.getCurrentDataSet().endUpdate(); 132 } 133 } 134 135 @Override public void fillModifiedData(Collection<OsmPrimitive> modified, Collection<OsmPrimitive> deleted, Collection<OsmPrimitive> added) { 133 dataSet.endUpdate(); 134 } 135 } 136 137 @Override 138 public void fillModifiedData(Collection<OsmPrimitive> modified, Collection<OsmPrimitive> deleted, Collection<OsmPrimitive> added) { 136 139 modified.addAll(objects); 137 140 }
Note:
See TracChangeset
for help on using the changeset viewer.