Changeset 32329 in osm for applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java
- Timestamp:
- 2016-06-19T16:08:56+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java
r31927 r32329 369 369 break; 370 370 case IMAGERYURL: 371 Layer layer = Main. map.mapView.getActiveLayer();371 Layer layer = Main.getLayerManager().getActiveLayer(); 372 372 if (layer != null) { 373 373 if (!(layer instanceof ImageryLayer)) { 374 List<ImageryLayer> imageryLayers = Main. map.mapView.getLayersOfType(ImageryLayer.class);374 List<ImageryLayer> imageryLayers = Main.getLayerManager().getLayersOfType(ImageryLayer.class); 375 375 if (imageryLayers.size() == 1) { 376 376 layer = imageryLayers.get(0); … … 389 389 break; 390 390 case IMAGERYOFFSET: 391 Layer olayer = Main. map.mapView.getActiveLayer();391 Layer olayer = Main.getLayerManager().getActiveLayer(); 392 392 if (olayer != null) { 393 393 if (!(olayer instanceof ImageryLayer)) { 394 List<ImageryLayer> imageryLayers = Main. map.mapView.getLayersOfType(ImageryLayer.class);394 List<ImageryLayer> imageryLayers = Main.getLayerManager().getLayersOfType(ImageryLayer.class); 395 395 if (imageryLayers.size() == 1) { 396 396 olayer = imageryLayers.get(0); … … 597 597 GpxFilter gpxFilter = new GpxFilter(); 598 598 gpxFilter.initBboxFilter(bbox); 599 List<GpxLayer> gpxLayers = Main. map.mapView.getLayersOfType(GpxLayer.class);599 List<GpxLayer> gpxLayers = Main.getLayerManager().getLayersOfType(GpxLayer.class); 600 600 for (GpxLayer gpxLayer : gpxLayers) { 601 601 gpxFilter.addGpxData(gpxLayer.data);
Note:
See TracChangeset
for help on using the changeset viewer.