Changeset 30428 in osm for applications/editors/josm/plugins/photoadjust/src
- Timestamp:
- 2014-04-30T01:36:58+02:00 (12 years ago)
- Location:
- applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust
- Files:
-
- 2 edited
-
PhotoAdjustMapMode.java (modified) (1 diff)
-
UntaggedGeoImageLayerAction.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust/PhotoAdjustMapMode.java
r30130 r30428 206 206 return ! Main.map.mapView.getLayersOfType(GeoImageLayer.class).isEmpty(); 207 207 } 208 209 /**210 * Determine if there are photos that can be adjusted. I.e. there211 * is at least one GeoImageLayer that is visible (and contains212 * photos).213 *214 * @return {@code true} if there are photos that can be ajusted215 */216 private boolean hasPhotosToAdjust() {217 if (Main.map == null || Main.map.mapView == null) return false;218 for (GeoImageLayer layer: new ArrayList<GeoImageLayer>(Main.map.mapView.getLayersOfType(GeoImageLayer.class))) {219 if (layer.isVisible()) {220 return true;221 }222 }223 return false;224 }225 208 226 209 /** -
applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust/UntaggedGeoImageLayerAction.java
r30130 r30428 27 27 /** Define menu entry (text and image). */ 28 28 public UntaggedGeoImageLayerAction() { 29 super(tr("New layer for untagged images"), 30 ImageProvider.get("untaglayer")); 31 }; 29 super(tr("New layer for untagged images"), ImageProvider.get("untaglayer")); 30 } 32 31 33 32 /** Get the layer this menu entry belongs to. */
Note:
See TracChangeset
for help on using the changeset viewer.
