Changeset 29748 in osm for applications/editors
- Timestamp:
- 2013-07-06T21:53:54+02:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/tagging-preset-tester
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/tagging-preset-tester/.settings/org.eclipse.jdt.core.prefs
r28566 r29748 1 1 eclipse.preferences.version=1 2 org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore 3 org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull 4 org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault 5 org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable 6 org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled 2 7 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 8 org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 … … 7 12 org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 13 org.eclipse.jdt.core.compiler.debug.sourceFile=generate 14 org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning 9 15 org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 16 org.eclipse.jdt.core.compiler.problem.autoboxing=ignore 17 org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning 18 org.eclipse.jdt.core.compiler.problem.deadCode=warning 19 org.eclipse.jdt.core.compiler.problem.deprecation=warning 20 org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled 21 org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled 22 org.eclipse.jdt.core.compiler.problem.discouragedReference=warning 23 org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore 10 24 org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 25 org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore 26 org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore 27 org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled 28 org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore 29 org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning 30 org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning 31 org.eclipse.jdt.core.compiler.problem.forbiddenReference=error 32 org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning 33 org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled 34 org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning 35 org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning 36 org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore 37 org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore 38 org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning 39 org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore 40 org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore 41 org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled 42 org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore 43 org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore 44 org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled 45 org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore 46 org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore 47 org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning 48 org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning 49 org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore 50 org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error 51 org.eclipse.jdt.core.compiler.problem.nullReference=warning 52 org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error 53 org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning 54 org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning 55 org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore 56 org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore 57 org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore 58 org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore 59 org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning 60 org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning 61 org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore 62 org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore 63 org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore 64 org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore 65 org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore 66 org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled 67 org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning 68 org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled 69 org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled 70 org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore 71 org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning 72 org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled 73 org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning 74 org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning 75 org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore 76 org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning 77 org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore 78 org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore 79 org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore 80 org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore 81 org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled 82 org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled 83 org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled 84 org.eclipse.jdt.core.compiler.problem.unusedImport=warning 85 org.eclipse.jdt.core.compiler.problem.unusedLabel=warning 86 org.eclipse.jdt.core.compiler.problem.unusedLocal=warning 87 org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore 88 org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore 89 org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled 90 org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled 91 org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled 92 org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning 93 org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning 94 org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning 11 95 org.eclipse.jdt.core.compiler.source=1.6 -
applications/editors/josm/plugins/tagging-preset-tester/src/org/openstreetmap/josm/plugins/taggingpresettester/TaggingPresetTester.java
r23189 r29748 6 6 import java.awt.event.ActionEvent; 7 7 import java.awt.event.ActionListener; 8 import java.io.FileInputStream;9 import java.io.IOException;10 import java.io.InputStream;11 import java.io.InputStreamReader;12 import java.io.BufferedReader;13 import java.net.URL;14 8 import java.util.Arrays; 15 9 import java.util.Collection; … … 23 17 import javax.swing.JFileChooser; 24 18 import javax.swing.JFrame; 25 import javax.swing.JOptionPane;26 19 import javax.swing.JPanel; 27 20 28 21 import org.openstreetmap.josm.data.osm.OsmPrimitive; 29 22 import org.openstreetmap.josm.gui.tagging.TaggingPreset; 30 import org.xml.sax.SAXException;31 23 24 /** 25 * The tagging presets tester window 26 */ 32 27 public class TaggingPresetTester extends JFrame { 33 28 … … 77 72 int i = taggingPresets.getSelectedIndex(); 78 73 reload(); 79 taggingPresets.setSelectedIndex(i); 74 if (i < taggingPresets.getItemCount()) { 75 taggingPresets.setSelectedIndex(i); 76 } 80 77 } 81 78 }); -
applications/editors/josm/plugins/tagging-preset-tester/src/org/openstreetmap/josm/plugins/taggingpresettester/TaggingPresetTesterAction.java
r27852 r29748 6 6 import java.awt.event.KeyEvent; 7 7 import java.util.Collection; 8 import java.util.Collections;9 8 10 9 import javax.swing.JOptionPane;
Note:
See TracChangeset
for help on using the changeset viewer.