Changeset 9909 in osm for applications/editors/josm
- Timestamp:
- 2008-08-17T12:24:09+02:00 (16 years ago)
- Location:
- applications/editors/josm/plugins/validator
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java
r9894 r9909 5 5 import java.awt.event.ActionEvent; 6 6 import java.awt.event.ActionListener; 7 import java.awt.Dimension; 7 8 import java.awt.GridBagLayout; 8 9 import java.io.BufferedReader; … … 176 177 for(String source: sources.split(";")) 177 178 { 178 File sourceFile = Util.mirror(new URL(source), Util.getPluginDir(), -1); 179 File sourceFile = null; 180 try 181 { 182 sourceFile = Util.mirror(new URL(source), Util.getPluginDir(), -1); 183 } 184 catch(java.net.MalformedURLException e) {} 179 185 if( sourceFile == null || !sourceFile.exists() ) 180 186 { 181 errorSources += source + "\n"; 182 continue; 187 sourceFile = new File(source); 188 if( sourceFile == null || !sourceFile.exists() ) 189 { 190 errorSources += source + "\n"; 191 continue; 192 } 183 193 } 184 194 … … 465 475 466 476 String sources = Main.pref.get( PREF_SOURCES ); 467 for(String source : sources.split(";")) 468 ((DefaultListModel)Sources.getModel()).addElement(source); 477 if(sources != null && sources.length() > 0) 478 { 479 for(String source : sources.split(";")) 480 ((DefaultListModel)Sources.getModel()).addElement(source); 481 } 469 482 470 483 addSrcButton = new JButton(tr("Add")); … … 519 532 } 520 533 }); 534 Sources.setMinimumSize(new Dimension(300,50)); 521 535 Sources.setVisibleRowCount(3); 522 536 -
applications/editors/josm/plugins/validator/tagchecker.cfg
r9863 r9909 46 46 way : I : highway == tertiary && ref != * # highway without a reference 47 47 * : W : / *name */i == * && name != * # misspelled key name 48 49 way : W : highway == cycleway && bicycle == * # cycleway with tag bicycle 50 way : W : highway == footway && foot == * # footway with tag foot 51 way : W : highway == cycleway && cycleway == lane # seperate cycleway as lane on a cycleway 52 way : W : highway == * && barrier == * # barrier used on a way 53 54 way : I : waterway == * && layer != * # waterway without layer tag 55 way : I : highway == footway && maxspeed == * # maxspeed used for footway 56 57 * : W : layer == /\+.*/ # layer tag with + sign
Note:
See TracChangeset
for help on using the changeset viewer.