Ignore:
Timestamp:
2015-10-24T21:32:35+02:00 (4 years ago)
Author:
Don-vip
Message:

fix #12004 - suggest to replace source:maxspeed=UK:* by source:maxspeed=GB:* as per ISO 3166-2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/ChangePropertyCommand.java

    r8846 r8941  
    1717import javax.swing.Icon;
    1818
    19 import org.openstreetmap.josm.Main;
     19import org.openstreetmap.josm.data.osm.DataSet;
    2020import org.openstreetmap.josm.data.osm.OsmPrimitive;
    2121import org.openstreetmap.josm.data.osm.OsmPrimitiveType;
     
    106106    }
    107107
    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();
    110112        try {
    111113            super.executeCommand(); // save old
     
    129131            return true;
    130132        } 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) {
    136139        modified.addAll(objects);
    137140    }
Note: See TracChangeset for help on using the changeset viewer.