Changeset 2017 in josm for trunk/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java
- Timestamp:
- 2009-08-30T19:07:24+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java
r1882 r2017 21 21 import org.openstreetmap.josm.Main; 22 22 import org.openstreetmap.josm.actions.ShowStatusReportAction; 23 import org.openstreetmap.josm.gui.OptionPaneUtil;24 23 import org.openstreetmap.josm.plugins.PluginHandler; 25 24 … … 39 38 if (e instanceof OutOfMemoryError) { 40 39 // do not translate the string, as translation may raise an exception 41 OptionPaneUtil.showMessageDialog(Main.parent, "JOSM is out of memory. " +40 JOptionPane.showMessageDialog(Main.parent, "JOSM is out of memory. " + 42 41 "Strange things may happen.\nPlease restart JOSM with the -Xmx###M option,\n" + 43 42 "where ### is the the number of MB assigned to JOSM (e.g. 256).\n" + … … 53 52 54 53 Object[] options = new String[]{tr("Do nothing"), tr("Report Bug")}; 55 int answer = OptionPaneUtil.showOptionDialog(Main.parent, tr("An unexpected exception occurred.\n\n" +54 int answer = JOptionPane.showOptionDialog(Main.parent, tr("An unexpected exception occurred.\n\n" + 56 55 "This is always a coding error. If you are running the latest\n" + 57 56 "version of JOSM, please consider being kind and file a bug report."), 58 tr("Unexpected Exception"), JOptionPane.YES_NO_OPTION, JOptionPane.ERROR_MESSAGE, 57 tr("Unexpected Exception"), JOptionPane.YES_NO_OPTION, JOptionPane.ERROR_MESSAGE,null, 59 58 options, options[0]); 60 59 if (answer == 1) { … … 84 83 p.add(new JScrollPane(info), GBC.eop()); 85 84 86 OptionPaneUtil.showMessageDialog(Main.parent, p, tr("Warning"), JOptionPane.WARNING_MESSAGE);85 JOptionPane.showMessageDialog(Main.parent, p, tr("Warning"), JOptionPane.WARNING_MESSAGE); 87 86 } catch (Exception e1) { 88 87 e1.printStackTrace();
Note:
See TracChangeset
for help on using the changeset viewer.