Changeset 2017 in josm for trunk/src/org/openstreetmap/josm/actions/search
- Timestamp:
- 2009-08-30T19:07:24+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions/search
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r1988 r2017 23 23 import org.openstreetmap.josm.data.osm.OsmPrimitive; 24 24 import org.openstreetmap.josm.gui.ExtendedDialog; 25 import org.openstreetmap.josm.gui.OptionPaneUtil;26 25 import org.openstreetmap.josm.tools.GBC; 27 26 import org.openstreetmap.josm.tools.Shortcut; … … 48 47 return; 49 48 if (Main.map == null) { 50 OptionPaneUtil.showMessageDialog(49 JOptionPane.showMessageDialog( 51 50 Main.parent, 52 51 tr("Can't search because there is no loaded data."), … … 200 199 } 201 200 Main.map.statusLine.setHelpText(msg); 202 OptionPaneUtil.showMessageDialog(201 JOptionPane.showMessageDialog( 203 202 Main.parent, 204 203 msg, … … 210 209 } 211 210 } catch (SearchCompiler.ParseError e) { 212 OptionPaneUtil.showMessageDialog(211 JOptionPane.showMessageDialog( 213 212 Main.parent, 214 213 e.getMessage(), -
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.