Changeset 34542 in osm for applications/editors/josm
- Timestamp:
- 2018-08-18T19:26:19+02:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/photo_geotagging
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/photo_geotagging/.classpath
r32680 r34542 2 2 <classpath> 3 3 <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> 5 9 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> 6 10 <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 9 9 org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 10 10 org.eclipse.jdt.core.compiler.compliance=1.8 11 org.eclipse.jdt.core.compiler.doc.comment.support=enabled 11 12 org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning 12 13 org.eclipse.jdt.core.compiler.problem.assertIdentifier=error … … 32 33 org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning 33 34 org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore 35 org.eclipse.jdt.core.compiler.problem.invalidJavadoc=warning 36 org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled 37 org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled 38 org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled 39 org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=private 34 40 org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore 35 41 org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning … … 38 44 org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled 39 45 org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore 46 org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore 47 org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled 48 org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public 49 org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=all_standard_tags 50 org.eclipse.jdt.core.compiler.problem.missingJavadocTags=warning 51 org.eclipse.jdt.core.compiler.problem.missingJavadocTagsMethodTypeParameters=disabled 52 org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled 53 org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=private 40 54 org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore 41 55 org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled -
applications/editors/josm/plugins/photo_geotagging/build.xml
r33878 r34542 5 5 <property name="commit.message" value=""/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="1 2840"/>7 <property name="plugin.main.version" value="14153"/> 8 8 9 9 <property name="plugin.author" value="Paul Hartmann"/> -
applications/editors/josm/plugins/photo_geotagging/src/org/openstreetmap/josm/plugins/photo_geotagging/ExifGPSTagger.java
r31204 r34542 39 39 * @param ele elevation - can be null if not available 40 40 * @param imgDir image direction in degrees (0..360) - can be null if not available 41 * @throws IOException in case of I/O error 41 42 */ 42 43 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 33 33 import javax.swing.UIManager; 34 34 35 import org.openstreetmap.josm.Main;36 35 import org.openstreetmap.josm.gui.ExtendedDialog; 37 36 import org.openstreetmap.josm.gui.MainApplication; … … 42 41 import org.openstreetmap.josm.gui.layer.geoimage.GeoImageLayer; 43 42 import org.openstreetmap.josm.gui.layer.geoimage.ImageEntry; 43 import org.openstreetmap.josm.spi.preferences.Config; 44 44 import org.openstreetmap.josm.tools.GBC; 45 45 import org.openstreetmap.josm.tools.ImageProvider; … … 97 97 cont.add(settingsPanel, GBC.eol().insets(3,10,3,0)); 98 98 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)); 100 100 settingsPanel.add(backups, GBC.eol().insets(3,3,0,0)); 101 101 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)); 103 103 settingsPanel.add(setMTime, GBC.std().insets(3,3,5,3)); 104 104 … … 106 106 final JComboBox<String> mTimeMode = new JComboBox<>(mTimeModeArray); 107 107 { 108 String mTimeModePref = Main.pref.get(MTIME_MODE, null);108 String mTimeModePref = Config.getPref().get(MTIME_MODE, null); 109 109 int mTimeIdx = 0; 110 110 if ("gps".equals(mTimeModePref)) { … … 131 131 132 132 int result = new ExtendedDialog( 133 Main .parent,133 MainApplication.getMainFrame(), 134 134 tr("Photo Geotagging Plugin"), 135 135 new String[] {tr("OK"), tr("Cancel")}) … … 146 146 final boolean keep_backup = backups.isSelected(); 147 147 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); 150 150 if (change_mtime) { 151 151 String mTimeModePref; … … 160 160 mTimeModePref = null; 161 161 } 162 Main.pref.put(MTIME_MODE, mTimeModePref);162 Config.getPref().put(MTIME_MODE, mTimeModePref); 163 163 } 164 164 … … 427 427 /** 428 428 * Check if there is any suitable image. 429 * @param layer geo image layer 430 * @return {@code true} if there is any suitable image 429 431 */ 430 432 private boolean enabled(GeoImageLayer layer) {
Note:
See TracChangeset
for help on using the changeset viewer.