Changeset 32329 in osm for applications/editors/josm/plugins/imageryadjust
- Timestamp:
- 2016-06-19T16:08:56+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/imageryadjust
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imageryadjust/build.xml
r31923 r32329 2 2 <project name="imageryadjust" default="dist" basedir="."> 3 3 <property name="commit.message" value="ImageryAdjust: Adjust while holding shortcut key"/> 4 <property name="plugin.main.version" value=" 7001"/>4 <property name="plugin.main.version" value="10279"/> 5 5 6 6 <property name="plugin.author" value="Upliner"/> -
applications/editors/josm/plugins/imageryadjust/src/imageryadjust/ImageryAdjustMapMode.java
r31690 r32329 54 54 55 55 private List<? extends Layer> getVisibleLayers() { 56 List<? extends Layer> all = new ArrayList<Layer>(Main. map.mapView.getLayersOfType(ImageryLayer.class));56 List<? extends Layer> all = new ArrayList<Layer>(Main.getLayerManager().getLayersOfType(ImageryLayer.class)); 57 57 Iterator<? extends Layer> it = all.iterator(); 58 58 while (it.hasNext()) { … … 76 76 return; 77 77 } 78 List<ImageryLayer> layers = Main. map.mapView.getLayersOfType(ImageryLayer.class);78 List<ImageryLayer> layers = Main.getLayerManager().getLayersOfType(ImageryLayer.class); 79 79 if (layers.size() == 1) { 80 80 adjustingLayer = layers.get(0); … … 159 159 if (Main.map.mapView == null) 160 160 return false; 161 return Main. map.mapView.getActiveLayer() == layer;161 return Main.getLayerManager().getActiveLayer() == layer; 162 162 } 163 163 … … 230 230 if (Main.map == null) return false; 231 231 if (Main.map.mapView == null) return false; 232 boolean b = ! Main. map.mapView.getLayersOfType(ImageryLayer.class).isEmpty();232 boolean b = ! Main.getLayerManager().getLayersOfType(ImageryLayer.class).isEmpty(); 233 233 return b; 234 234 }
Note:
See TracChangeset
for help on using the changeset viewer.