Ignore:
Timestamp:
2018-08-18T19:26:19+02:00 (6 years ago)
Author:
donvip
Message:

update to JOSM 14153

Location:
applications/editors/josm/plugins/photo_geotagging
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/photo_geotagging/.classpath

    r32680 r34542  
    22<classpath>
    33        <classpathentry kind="src" path="src"/>
    4         <classpathentry kind="src" path="test/unit"/>
     4        <classpathentry kind="src" output="bintest" path="test/unit">
     5                <attributes>
     6                        <attribute name="test" value="true"/>
     7                </attributes>
     8        </classpathentry>
    59        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
    610        <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
  • applications/editors/josm/plugins/photo_geotagging/.settings/org.eclipse.jdt.core.prefs

    r32699 r34542  
    99org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
    1010org.eclipse.jdt.core.compiler.compliance=1.8
     11org.eclipse.jdt.core.compiler.doc.comment.support=enabled
    1112org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
    1213org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
     
    3233org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
    3334org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
     35org.eclipse.jdt.core.compiler.problem.invalidJavadoc=warning
     36org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled
     37org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled
     38org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled
     39org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=private
    3440org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
    3541org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
     
    3844org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled
    3945org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
     46org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore
     47org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
     48org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
     49org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=all_standard_tags
     50org.eclipse.jdt.core.compiler.problem.missingJavadocTags=warning
     51org.eclipse.jdt.core.compiler.problem.missingJavadocTagsMethodTypeParameters=disabled
     52org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
     53org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=private
    4054org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
    4155org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
  • applications/editors/josm/plugins/photo_geotagging/build.xml

    r33878 r34542  
    55    <property name="commit.message" value=""/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="12840"/>
     7    <property name="plugin.main.version" value="14153"/>
    88
    99    <property name="plugin.author" value="Paul Hartmann"/>
  • applications/editors/josm/plugins/photo_geotagging/src/org/openstreetmap/josm/plugins/photo_geotagging/ExifGPSTagger.java

    r31204 r34542  
    3939     * @param ele elevation - can be null if not available
    4040     * @param imgDir image direction in degrees (0..360) - can be null if not available
     41     * @throws IOException in case of I/O error
    4142     */
    4243    public static void setExifGPSTag(File jpegImageFile, File dst, double lat, double lon, Date gpsTime, Double speed, Double ele, Double imgDir) throws IOException {
  • applications/editors/josm/plugins/photo_geotagging/src/org/openstreetmap/josm/plugins/photo_geotagging/GeotaggingAction.java

    r33967 r34542  
    3333import javax.swing.UIManager;
    3434
    35 import org.openstreetmap.josm.Main;
    3635import org.openstreetmap.josm.gui.ExtendedDialog;
    3736import org.openstreetmap.josm.gui.MainApplication;
     
    4241import org.openstreetmap.josm.gui.layer.geoimage.GeoImageLayer;
    4342import org.openstreetmap.josm.gui.layer.geoimage.ImageEntry;
     43import org.openstreetmap.josm.spi.preferences.Config;
    4444import org.openstreetmap.josm.tools.GBC;
    4545import org.openstreetmap.josm.tools.ImageProvider;
     
    9797        cont.add(settingsPanel, GBC.eol().insets(3,10,3,0));
    9898
    99         final JCheckBox backups = new JCheckBox(tr("keep backup files"), Main.pref.getBoolean(KEEP_BACKUP, true));
     99        final JCheckBox backups = new JCheckBox(tr("keep backup files"), Config.getPref().getBoolean(KEEP_BACKUP, true));
    100100        settingsPanel.add(backups, GBC.eol().insets(3,3,0,0));
    101101
    102         final JCheckBox setMTime = new JCheckBox(tr("change file modification time:"), Main.pref.getBoolean(CHANGE_MTIME, false));
     102        final JCheckBox setMTime = new JCheckBox(tr("change file modification time:"), Config.getPref().getBoolean(CHANGE_MTIME, false));
    103103        settingsPanel.add(setMTime, GBC.std().insets(3,3,5,3));
    104104
     
    106106        final JComboBox<String> mTimeMode = new JComboBox<>(mTimeModeArray);
    107107        {
    108             String mTimeModePref = Main.pref.get(MTIME_MODE, null);
     108            String mTimeModePref = Config.getPref().get(MTIME_MODE, null);
    109109            int mTimeIdx = 0;
    110110            if ("gps".equals(mTimeModePref)) {
     
    131131
    132132        int result = new ExtendedDialog(
    133                 Main.parent,
     133                MainApplication.getMainFrame(),
    134134                tr("Photo Geotagging Plugin"),
    135135                new String[] {tr("OK"), tr("Cancel")})
     
    146146        final boolean keep_backup = backups.isSelected();
    147147        final boolean change_mtime = setMTime.isSelected();
    148         Main.pref.putBoolean(KEEP_BACKUP, keep_backup);
    149         Main.pref.putBoolean(CHANGE_MTIME, change_mtime);
     148        Config.getPref().putBoolean(KEEP_BACKUP, keep_backup);
     149        Config.getPref().putBoolean(CHANGE_MTIME, change_mtime);
    150150        if (change_mtime) {
    151151            String mTimeModePref;
     
    160160                mTimeModePref = null;
    161161            }
    162             Main.pref.put(MTIME_MODE, mTimeModePref);
     162            Config.getPref().put(MTIME_MODE, mTimeModePref);
    163163        }
    164164
     
    427427    /**
    428428     * Check if there is any suitable image.
     429     * @param layer geo image layer
     430     * @return {@code true} if there is any suitable image
    429431     */
    430432    private boolean enabled(GeoImageLayer layer) {
Note: See TracChangeset for help on using the changeset viewer.