Changeset 27494 in osm for applications
- Timestamp:
- 2012-01-19T19:43:24+01:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/imageryadjust
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imageryadjust/build.xml
r27038 r27494 30 30 <project name="imageryadjust" default="dist" basedir="."> 31 31 <!-- enter the SVN commit message --> 32 <property name="commit.message" value=" Commit message"/>32 <property name="commit.message" value="ImageryAdjust: show visible layers only"/> 33 33 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 34 <property name="plugin.main.version" value="4 549"/>34 <property name="plugin.main.version" value="4667"/> 35 35 <!-- 36 36 ************************************************ -
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.