Changeset 9894 in osm for applications/editors/josm/plugins/validator/src
- Timestamp:
- 2008-08-16T13:27:00+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java
r9854 r9894 155 155 { 156 156 spellCheckKeyData = new HashMap<String, String>(); 157 String sources = Main.pref.get( PREF_SOURCES 158 if(Main.pref.getBoolean(PREF_USE_DATA_FILE ))157 String sources = Main.pref.get( PREF_SOURCES, ""); 158 if(Main.pref.getBoolean(PREF_USE_DATA_FILE, true)) 159 159 { 160 160 if( sources == null || sources.length() == 0) … … 163 163 sources = DATA_FILE + ";" + sources; 164 164 } 165 if(Main.pref.getBoolean(PREF_USE_SPELL_FILE ))165 if(Main.pref.getBoolean(PREF_USE_SPELL_FILE, true)) 166 166 { 167 167 if( sources == null || sources.length() == 0) … … 172 172 173 173 String errorSources = ""; 174 if(sources.length() == 0) 175 return; 174 176 for(String source: sources.split(";")) 175 177 { … … 235 237 public static void initializePresets() throws Exception 236 238 { 237 if( !Main.pref.getBoolean(PREF_CHECK_VALUES ) )239 if( !Main.pref.getBoolean(PREF_CHECK_VALUES, true) ) 238 240 return; 239 241 … … 382 384 { 383 385 String allAnnotations = Main.pref.get("taggingpreset.sources"); 386 if(allAnnotations == null | allAnnotations.length() == 0) 387 return; 384 388 for(String source : allAnnotations.split(";")) 385 389 { … … 410 414 public void startTest() 411 415 { 412 checkKeys = Main.pref.getBoolean(PREF_CHECK_KEYS );416 checkKeys = Main.pref.getBoolean(PREF_CHECK_KEYS, true); 413 417 if( isBeforeUpload ) 414 418 checkKeys = checkKeys && Main.pref.getBoolean(PREF_CHECK_KEYS_BEFORE_UPLOAD, true); 415 419 416 checkValues = Main.pref.getBoolean(PREF_CHECK_VALUES );420 checkValues = Main.pref.getBoolean(PREF_CHECK_VALUES, true); 417 421 if( isBeforeUpload ) 418 422 checkValues = checkValues && Main.pref.getBoolean(PREF_CHECK_VALUES_BEFORE_UPLOAD, true); 419 423 420 checkComplex = Main.pref.getBoolean(PREF_CHECK_COMPLEX );424 checkComplex = Main.pref.getBoolean(PREF_CHECK_COMPLEX, true); 421 425 if( isBeforeUpload ) 422 426 checkComplex = checkValues && Main.pref.getBoolean(PREF_CHECK_COMPLEX_BEFORE_UPLOAD, true); 423 427 424 checkFixmes = Main.pref.getBoolean(PREF_CHECK_FIXMES );428 checkFixmes = Main.pref.getBoolean(PREF_CHECK_FIXMES, true); 425 429 if( isBeforeUpload ) 426 430 checkFixmes = checkFixmes && Main.pref.getBoolean(PREF_CHECK_FIXMES_BEFORE_UPLOAD, true);
Note:
See TracChangeset
for help on using the changeset viewer.