Changeset 2611 in osm for applications/editors/josm
- Timestamp:
- 2007-04-22T02:56:05+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/SpellCheck.java
r2591 r2611 9 9 10 10 import javax.swing.JCheckBox; 11 import javax.swing.JOptionPane;12 11 import javax.swing.JPanel; 13 12 14 13 import org.openstreetmap.josm.Main; 15 import org.openstreetmap.josm.command.ChangePropertyCommand; 16 import org.openstreetmap.josm.command.Command; 17 import org.openstreetmap.josm.command.SequenceCommand; 14 import org.openstreetmap.josm.command.*; 18 15 import org.openstreetmap.josm.data.osm.*; 19 16 import org.openstreetmap.josm.gui.annotation.AnnotationPreset; … … 118 115 public static void initializePresets(@SuppressWarnings("unused") OSMValidatorPlugin plugin) throws Exception 119 116 { 120 if( Main.pref.getBoolean(PREF_CHECK_VALUES) )117 if( !Main.pref.getBoolean(PREF_CHECK_VALUES) ) 121 118 return; 122 119 … … 254 251 catch (IOException e) 255 252 { 256 e.printStackTrace(); 257 JOptionPane.showMessageDialog(Main.parent, tr("Could not read annotation preset source: {0}",source)); 253 // Error already reported by JOSM 258 254 } 259 255 catch (SAXException e) 260 256 { 261 e.printStackTrace(); 262 JOptionPane.showMessageDialog(Main.parent, tr("Error parsing {0}: ", source)+e.getMessage()); 257 // Error already reported by JOSM 263 258 } 264 259 } … … 268 263 public void startTest() 269 264 { 270 checkValues = Main.pref.getBoolean( "tests." + getClass().getSimpleName() + ".checkValues");265 checkValues = Main.pref.getBoolean(PREF_CHECK_VALUES); 271 266 } 272 267
Note:
See TracChangeset
for help on using the changeset viewer.