Changeset 32482 in osm for applications/editors/josm


Ignore:
Timestamp:
2016-07-01T09:40:15+02:00 (8 years ago)
Author:
donvip
Message:

remove calls to deprecated methods

Location:
applications/editors/josm/plugins/addrinterpolation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/addrinterpolation/build.xml

    r31926 r32482  
    44    <property name="commit.message" value="Impoved Icon"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="7001"/>
     6    <property name="plugin.main.version" value="10279"/>
    77   
    88    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/addrinterpolation/src/org/openstreetmap/josm/plugins/AddrInterpolation/AddrInterpolationDialog.java

    r30737 r32482  
    535535    private String FindRelation() {
    536536        String relationDescription = null;
    537         DataSet currentDataSet = Main.main.getCurrentDataSet();
     537        DataSet currentDataSet = Main.getLayerManager().getEditDataSet();
    538538        if (currentDataSet != null) {
    539539            for (Relation relation : currentDataSet.getRelations()) {
     
    583583        int namedWayCount = 0;
    584584        int unNamedWayCount = 0;
    585         DataSet currentDataSet = Main.main.getCurrentDataSet();
     585        DataSet currentDataSet = Main.getLayerManager().getEditDataSet();
    586586        if (currentDataSet != null) {
    587587            for (OsmPrimitive osm : currentDataSet.getSelectedWays()) {
     
    10341034
    10351035            // De-select address interpolation way; leave street selected
    1036             DataSet currentDataSet = Main.main.getCurrentDataSet();
     1036            DataSet currentDataSet = Main.getLayerManager().getEditDataSet();
    10371037            if (currentDataSet != null) {
    10381038                currentDataSet.clearSelection(addrInterpolationWay);
Note: See TracChangeset for help on using the changeset viewer.