Changeset 13173 in josm for trunk/src/org/openstreetmap/josm/command/ChangeCommand.java
- Timestamp:
- 2017-11-28T00:56:29+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/ChangeCommand.java
r12726 r13173 15 15 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; 16 16 import org.openstreetmap.josm.data.osm.Way; 17 import org.openstreetmap.josm.gui.layer.OsmDataLayer;18 17 import org.openstreetmap.josm.tools.CheckParameterUtil; 19 18 import org.openstreetmap.josm.tools.ImageProvider; … … 36 35 public ChangeCommand(OsmPrimitive osm, OsmPrimitive newOsm) { 37 36 this(osm.getDataSet(), osm, newOsm); 38 }39 40 /**41 * Constructs a new {@code ChangeCommand} in the context of a given data layer.42 * @param layer The data layer43 * @param osm The existing primitive to modify44 * @param newOsm The new primitive45 * @deprecated to be removed end of 2017. Use {@link #ChangeCommand(DataSet, OsmPrimitive, OsmPrimitive)} instead46 */47 @Deprecated48 public ChangeCommand(OsmDataLayer layer, OsmPrimitive osm, OsmPrimitive newOsm) {49 super(layer);50 this.osm = osm;51 this.newOsm = newOsm;52 sanityChecks();53 37 } 54 38
Note:
See TracChangeset
for help on using the changeset viewer.