Changeset 32329 in osm for applications/editors/josm/plugins/junctionchecking/src
- Timestamp:
- 2016-06-19T16:08:56+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/DigraphCreationTask.java
r30725 r32329 65 65 //Prüfen, ob der ausgewählte Layer ein OSMDataLayer ist 66 66 if (Main.map == null 67 || !Main.map.isVisible() || !(Main. map.mapView.getActiveLayer() instanceof OsmDataLayer)) {67 || !Main.map.isVisible() || !(Main.getLayerManager().getActiveLayer() instanceof OsmDataLayer)) { 68 68 JOptionPane.showMessageDialog(Main.parent, tr("this layer is no osm data layer")); 69 69 return; … … 84 84 OSMGraph graph = new OSMGraph(); 85 85 //Der vom Benutzer in JOSM ausgewählte, zur Zeit aktive Layer wird der PLugin-OSM-Layer 86 plugin.setOsmlayer((OsmDataLayer)Main. map.mapView.getActiveLayer());86 plugin.setOsmlayer((OsmDataLayer)Main.getLayerManager().getActiveLayer()); 87 87 Iterator<Node> it = Main.main.getCurrentDataSet().getNodes().iterator(); 88 88 while (it.hasNext()) { … … 147 147 Main.map.selectMapMode(plugin.getJcMapMode()); 148 148 Main.main.addLayer(plugin.getChannelDigraphLayer()); 149 Main. map.mapView.setActiveLayer(plugin.getChannelDigraphLayer());149 Main.getLayerManager().setActiveLayer(plugin.getChannelDigraphLayer()); 150 150 } 151 151 } -
applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/JunctionCheckTask.java
r30737 r32329 91 91 plugin.getChannelDigraph().addJunctioncandidateChannel(jc.getSubJunction().get(i)); 92 92 } 93 Main. map.mapView.setActiveLayer(plugin.getChannelDigraphLayer());93 Main.getLayerManager().setActiveLayer(plugin.getChannelDigraphLayer()); 94 94 } 95 95 } -
applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/util/RelationProducer.java
r30737 r32329 42 42 } 43 43 } 44 Main. map.mapView.setActiveLayer(plugin.getOsmlayer());44 Main.getLayerManager().setActiveLayer(plugin.getOsmlayer()); 45 45 plugin.getOsmlayer().data.setSelected(ways); 46 46
Note:
See TracChangeset
for help on using the changeset viewer.