Changeset 30428 in osm


Ignore:
Timestamp:
2014-04-30T01:36:58+02:00 (11 years ago)
Author:
donvip
Message:

[josm_photoadjust] fix #josm9964 - wrong image + code cleanup + javadoc version update

Location:
applications/editors/josm/plugins/photoadjust
Files:
4 added
4 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/photoadjust/build.xml

    r30416 r30428  
    4040            <link href="../../../core/javadoc"/>
    4141            <link href="http://josm.openstreetmap.de/doc/"/>
    42             <link href="http://docs.oracle.com/javase/6/docs/api"/>
     42            <link href="http://docs.oracle.com/javase/7/docs/api"/>
    4343        </javadoc>
    4444    </target>
  • applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust/PhotoAdjustMapMode.java

    r30130 r30428  
    206206        return ! Main.map.mapView.getLayersOfType(GeoImageLayer.class).isEmpty();
    207207    }
    208    
    209     /**
    210      * Determine if there are photos that can be adjusted.  I.e. there
    211      * is at least one GeoImageLayer that is visible (and contains
    212      * photos).
    213      *
    214      * @return {@code true} if there are photos that can be ajusted
    215      */
    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     }
    225208
    226209    /**
  • applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust/UntaggedGeoImageLayerAction.java

    r30130 r30428  
    2727    /** Define menu entry (text and image). */
    2828    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    }
    3231
    3332    /** Get the layer this menu entry belongs to. */
Note: See TracChangeset for help on using the changeset viewer.