Changeset 2017 in josm for trunk/src/org/openstreetmap/josm/actions/search/SelectionWebsiteLoader.java
- Timestamp:
- 30.08.2009 19:07:24 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/search/SelectionWebsiteLoader.java
r1857 r2017 20 20 import org.openstreetmap.josm.Main; 21 21 import org.openstreetmap.josm.data.osm.OsmPrimitive; 22 import org.openstreetmap.josm.gui.OptionPaneUtil;23 22 import org.openstreetmap.josm.gui.PleaseWaitRunnable; 24 23 import org.openstreetmap.josm.io.OsmIdReader; … … 60 59 } catch (IOException e) { 61 60 e.printStackTrace(); 62 OptionPaneUtil.showMessageDialog(61 JOptionPane.showMessageDialog( 63 62 Main.parent, 64 63 tr("Could not read from URL: \"{0}\"",url), … … 68 67 } catch (SAXException e) { 69 68 e.printStackTrace(); 70 OptionPaneUtil.showMessageDialog(69 JOptionPane.showMessageDialog( 71 70 Main.parent, 72 71 tr("Parsing error in URL: \"{0}\"",url), … … 78 77 if (e.getCause() != null) { 79 78 if (e.getCause() instanceof IOException ) { 80 OptionPaneUtil.showMessageDialog(79 JOptionPane.showMessageDialog( 81 80 Main.parent, tr("Could not read from URL: \"{0}\"",url), 82 81 tr("Error"), JOptionPane.ERROR_MESSAGE); 83 82 } else if (e.getCause() instanceof SAXException) { 84 OptionPaneUtil.showMessageDialog(Main.parent,tr("Parsing error in URL: \"{0}\"",url),83 JOptionPane.showMessageDialog(Main.parent,tr("Parsing error in URL: \"{0}\"",url), 85 84 tr("Error"), JOptionPane.ERROR_MESSAGE); 86 85 } 87 86 } else { 88 OptionPaneUtil.showMessageDialog(Main.parent,tr("Error while communicating with server.",url),87 JOptionPane.showMessageDialog(Main.parent,tr("Error while communicating with server.",url), 89 88 tr("Error"), JOptionPane.ERROR_MESSAGE); 90 89 }
Note: See TracChangeset
for help on using the changeset viewer.
