Changeset 32329 in osm for applications/editors/josm/plugins/irsrectify/src
- Timestamp:
- 2016-06-19T16:08:56+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/irsrectify/src/irsrectify/IRSRectifyPlugin.java
r27852 r32329 74 74 data.data.addPrimitive(way); 75 75 data.data.setSelected(way.getPrimitiveId()); 76 frame.mapView.setActiveLayer(data);76 Main.getLayerManager().setActiveLayer(data); 77 77 } 78 78 … … 80 80 if( frame == null || frame.mapView == null ) 81 81 return null; 82 for( Layer l : frame.mapView.getAllLayers() )82 for( Layer l : Main.getLayerManager().getLayers() ) 83 83 if( l instanceof ImageryLayer ) 84 84 return (ImageryLayer)l; … … 90 90 return null; 91 91 92 OsmDataLayer l = frame.mapView.getEditLayer();92 OsmDataLayer l = Main.getLayerManager().getEditLayer(); 93 93 if( isOffsetLayer(l) ) 94 94 return l; 95 95 96 96 // try to find among all layers 97 for( Layer layer : frame.mapView.getAllLayers() )97 for( Layer layer : Main.getLayerManager().getLayers() ) 98 98 if( layer instanceof OsmDataLayer && isOffsetLayer((OsmDataLayer)layer) ) 99 99 return (OsmDataLayer) layer;
Note:
See TracChangeset
for help on using the changeset viewer.