Changeset 27494 in osm for applications/editors/josm/plugins/imageryadjust/src
- Timestamp:
- 2012-01-19T19:43:24+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imageryadjust/src/imageryadjust/ImageryAdjustMapMode.java
r24812 r27494 9 9 import java.awt.event.MouseListener; 10 10 import java.awt.event.MouseMotionListener; 11 import java.util.ArrayList; 12 import java.util.Iterator; 11 13 import java.util.List; 12 14 … … 40 42 ImageProvider.getCursor("normal", "move")); 41 43 } 42 44 45 private List<? extends Layer> getVisibleLayers() { 46 List<? extends Layer> all = new ArrayList<Layer>(Main.map.mapView.getLayersOfType(ImageryLayer.class)); 47 Iterator<? extends Layer> it = all.iterator(); 48 while (it.hasNext()) { 49 if (!it.next().isVisible()) it.remove(); 50 } 51 return all; 52 } 53 43 54 @Override public void enterMode() { 44 55 super.enterMode(); … … 51 62 adjustingLayer = layers.get(0); 52 63 } else { 53 adjustingLayer = (ImageryLayer)askAdjustLayer( Main.map.mapView.getLayersOfType(ImageryLayer.class));64 adjustingLayer = (ImageryLayer)askAdjustLayer(getVisibleLayers()); 54 65 } 55 66 if (adjustingLayer == null)
Note:
See TracChangeset
for help on using the changeset viewer.