Changeset 1847 in josm for trunk/src/org/openstreetmap/josm/actions/search
- Timestamp:
- 2009-07-25T23:44:19+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r1820 r1847 23 23 import org.openstreetmap.josm.data.osm.OsmPrimitive; 24 24 import org.openstreetmap.josm.gui.ExtendedDialog; 25 import org.openstreetmap.josm.gui.OptionPaneUtil; 25 26 import org.openstreetmap.josm.tools.GBC; 26 27 import org.openstreetmap.josm.tools.Shortcut; … … 47 48 return; 48 49 if (Main.map == null) { 49 JOptionPane.showMessageDialog(Main.parent, tr("No data loaded.")); 50 OptionPaneUtil.showMessageDialog( 51 Main.parent, 52 tr("Can't search because there is no loaded data."), 53 tr("Warning"), 54 JOptionPane.WARNING_MESSAGE 55 ); 50 56 return; 51 57 } … … 190 196 } 191 197 Main.map.statusLine.setHelpText(msg); 192 JOptionPane.showMessageDialog(Main.parent, msg); 198 OptionPaneUtil.showMessageDialog( 199 Main.parent, 200 msg, 201 tr("Warning"), 202 JOptionPane.WARNING_MESSAGE 203 ); 193 204 } else { 194 205 Main.map.statusLine.setHelpText(tr("Found {0} matches", foundMatches)); 195 206 } 196 207 } catch (SearchCompiler.ParseError e) { 197 JOptionPane.showMessageDialog(Main.parent, e.getMessage()); 208 OptionPaneUtil.showMessageDialog( 209 Main.parent, 210 e.getMessage(), 211 tr("Error"), 212 JOptionPane.ERROR_MESSAGE 213 214 ); 198 215 } 199 216 }
Note:
See TracChangeset
for help on using the changeset viewer.