Ignore:
Timestamp:
2009-08-30T19:07:24+02:00 (15 years ago)
Author:
Gubaer
Message:

removed OptionPaneUtil
cleanup of deprecated Layer API
cleanup of deprecated APIs in OsmPrimitive and Way
cleanup of imports

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java

    r1882 r2017  
    2121import org.openstreetmap.josm.Main;
    2222import org.openstreetmap.josm.actions.ShowStatusReportAction;
    23 import org.openstreetmap.josm.gui.OptionPaneUtil;
    2423import org.openstreetmap.josm.plugins.PluginHandler;
    2524
     
    3938            if (e instanceof OutOfMemoryError) {
    4039                // 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. " +
    4241                        "Strange things may happen.\nPlease restart JOSM with the -Xmx###M option,\n" +
    4342                        "where ### is the the number of MB assigned to JOSM (e.g. 256).\n" +
     
    5352
    5453            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" +
    5655                    "This is always a coding error. If you are running the latest\n" +
    5756            "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,
    5958            options, options[0]);
    6059            if (answer == 1) {
     
    8483                    p.add(new JScrollPane(info), GBC.eop());
    8584
    86                     OptionPaneUtil.showMessageDialog(Main.parent, p, tr("Warning"), JOptionPane.WARNING_MESSAGE);
     85                    JOptionPane.showMessageDialog(Main.parent, p, tr("Warning"), JOptionPane.WARNING_MESSAGE);
    8786                } catch (Exception e1) {
    8887                    e1.printStackTrace();
Note: See TracChangeset for help on using the changeset viewer.