Changeset 32510 in osm for applications/editors/josm/plugins/tracer
- Timestamp:
- 2016-07-02T00:04:39+02:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/tracer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/tracer/build.xml
r31923 r32510 4 4 <property name="commit.message" value="Tracer plugin can load at runtime"/> 5 5 <!-- 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"/> 7 7 <property name="plugin.canloadatruntime" value="true"/> 8 8 -
applications/editors/josm/plugins/tracer/src/org/openstreetmap/josm/plugins/tracer/ConnectWays.java
r30737 r32510 53 53 // bude se node slucovat s jinym? 54 54 double minDistanceSq = MIN_DISTANCE; 55 List<Node> nodes = Main. main.getCurrentDataSet().searchNodes(bbox);55 List<Node> nodes = Main.getLayerManager().getEditDataSet().searchNodes(bbox); 56 56 Node nearestNode = null; 57 57 for (Node nn : nodes) { … … 133 133 // node nebyl slouceny s jinym 134 134 // 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); 136 136 double minDist = Double.MAX_VALUE; 137 137 Way nearestWay = null; … … 190 190 double minDistanceSq = MIN_DISTANCE_SQ; 191 191 //double maxAngle = MAX_ANGLE; 192 List<Node> nodes = Main. main.getCurrentDataSet().searchNodes(new BBox(192 List<Node> nodes = Main.getLayerManager().getEditDataSet().searchNodes(new BBox( 193 193 Math.min(n1.getX(), n2.getX()) - minDistanceSq, 194 194 Math.min(n1.getY(), n2.getY()) - minDistanceSq, -
applications/editors/josm/plugins/tracer/src/org/openstreetmap/josm/plugins/tracer/TracerAction.java
r30737 r32510 137 137 138 138 if (shift) { 139 Main. main.getCurrentDataSet().addSelected(way);139 Main.getLayerManager().getEditDataSet().addSelected(way); 140 140 } else { 141 Main. main.getCurrentDataSet().setSelected(way);141 Main.getLayerManager().getEditDataSet().setSelected(way); 142 142 } 143 143 } else {
Note:
See TracChangeset
for help on using the changeset viewer.