Ignore:
Timestamp:
2016-07-02T00:04:39+02:00 (8 years ago)
Author:
donvip
Message:

remove calls to deprecated methods

Location:
applications/editors/josm/plugins/tracer
Files:
3 edited

Legend:

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

    r31923 r32510  
    44    <property name="commit.message" value="Tracer plugin can load at runtime"/>
    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    <property name="plugin.canloadatruntime" value="true"/>
    88
  • applications/editors/josm/plugins/tracer/src/org/openstreetmap/josm/plugins/tracer/ConnectWays.java

    r30737 r32510  
    5353            // bude se node slucovat s jinym?
    5454            double minDistanceSq = MIN_DISTANCE;
    55             List<Node> nodes = Main.main.getCurrentDataSet().searchNodes(bbox);
     55            List<Node> nodes = Main.getLayerManager().getEditDataSet().searchNodes(bbox);
    5656            Node nearestNode = null;
    5757            for (Node nn : nodes) {
     
    133133        // node nebyl slouceny s jinym
    134134        // hledani pripadne blizke usecky, kam bod pridat
    135         List<Way> ways = Main.main.getCurrentDataSet().searchWays(bbox);
     135        List<Way> ways = Main.getLayerManager().getEditDataSet().searchWays(bbox);
    136136        double minDist = Double.MAX_VALUE;
    137137        Way nearestWay = null;
     
    190190            double minDistanceSq = MIN_DISTANCE_SQ;
    191191            //double maxAngle = MAX_ANGLE;
    192             List<Node> nodes = Main.main.getCurrentDataSet().searchNodes(new BBox(
     192            List<Node> nodes = Main.getLayerManager().getEditDataSet().searchNodes(new BBox(
    193193                Math.min(n1.getX(), n2.getX()) - minDistanceSq,
    194194                Math.min(n1.getY(), n2.getY()) - minDistanceSq,
  • applications/editors/josm/plugins/tracer/src/org/openstreetmap/josm/plugins/tracer/TracerAction.java

    r30737 r32510  
    137137
    138138                if (shift) {
    139                     Main.main.getCurrentDataSet().addSelected(way);
     139                    Main.getLayerManager().getEditDataSet().addSelected(way);
    140140                } else {
    141                     Main.main.getCurrentDataSet().setSelected(way);
     141                    Main.getLayerManager().getEditDataSet().setSelected(way);
    142142                }
    143143            } else {
Note: See TracChangeset for help on using the changeset viewer.