Changeset 32349 in osm for applications/editors/josm/plugins/routing
- Timestamp:
- 2016-06-21T00:11:48+02:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/RoutingLayer.java
r30737 r32349 221 221 @Override 222 222 public void paint(Graphics2D g, MapView mv, Bounds bounds) { 223 boolean isActiveLayer = (mv.get ActiveLayer().equals(this));223 boolean isActiveLayer = (mv.getLayerManager().getActiveLayer().equals(this)); 224 224 // Get routing nodes (start, middle, end) 225 225 List<Node> nodes = routingModel.getSelectedNodes(); -
applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/RoutingPlugin.java
r30737 r32349 174 174 175 175 public void addLayer() { 176 OsmDataLayer osmLayer = Main. main.getEditLayer();176 OsmDataLayer osmLayer = Main.getLayerManager().getEditLayer(); 177 177 if (osmLayer != null) { 178 178 RoutingLayer layer = new RoutingLayer(tr("Routing") + " [" + osmLayer.getName() + "]", osmLayer); 179 179 layers.add(layer); 180 Main. main.addLayer(layer);180 Main.getLayerManager().addLayer(layer); 181 181 } 182 182 } … … 256 256 try { 257 257 // Remove layer 258 Main. main.removeLayer(layersArray[i]);258 Main.getLayerManager().removeLayer(layersArray[i]); 259 259 } catch (IllegalArgumentException e) { 260 Main.error(e); 260 261 } 261 262 }
Note:
See TracChangeset
for help on using the changeset viewer.