Changeset 9909 in osm for applications/editors/josm/plugins/validator/src/org
- Timestamp:
- 2008-08-17T12:24:09+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
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
Note:
See TracChangeset
for help on using the changeset viewer.