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

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  
    2323import org.openstreetmap.josm.data.osm.OsmPrimitive;
    2424import org.openstreetmap.josm.gui.ExtendedDialog;
    25 import org.openstreetmap.josm.gui.OptionPaneUtil;
    2625import org.openstreetmap.josm.tools.GBC;
    2726import org.openstreetmap.josm.tools.Shortcut;
     
    4847            return;
    4948        if (Main.map == null) {
    50             OptionPaneUtil.showMessageDialog(
     49            JOptionPane.showMessageDialog(
    5150                    Main.parent,
    5251                    tr("Can't search because there is no loaded data."),
     
    200199                }
    201200                Main.map.statusLine.setHelpText(msg);
    202                 OptionPaneUtil.showMessageDialog(
     201                JOptionPane.showMessageDialog(
    203202                        Main.parent,
    204203                        msg,
     
    210209            }
    211210        } catch (SearchCompiler.ParseError e) {
    212             OptionPaneUtil.showMessageDialog(
     211            JOptionPane.showMessageDialog(
    213212                    Main.parent,
    214213                    e.getMessage(),
  • trunk/src/org/openstreetmap/josm/actions/search/SelectionWebsiteLoader.java

    r1857 r2017  
    2020import org.openstreetmap.josm.Main;
    2121import org.openstreetmap.josm.data.osm.OsmPrimitive;
    22 import org.openstreetmap.josm.gui.OptionPaneUtil;
    2322import org.openstreetmap.josm.gui.PleaseWaitRunnable;
    2423import org.openstreetmap.josm.io.OsmIdReader;
     
    6059        } catch (IOException e) {
    6160            e.printStackTrace();
    62             OptionPaneUtil.showMessageDialog(
     61            JOptionPane.showMessageDialog(
    6362                    Main.parent,
    6463                    tr("Could not read from URL: \"{0}\"",url),
     
    6867        } catch (SAXException e) {
    6968            e.printStackTrace();
    70             OptionPaneUtil.showMessageDialog(
     69            JOptionPane.showMessageDialog(
    7170                    Main.parent,
    7271                    tr("Parsing error in URL: \"{0}\"",url),
     
    7877            if (e.getCause() != null) {
    7978                if (e.getCause() instanceof IOException ) {
    80                     OptionPaneUtil.showMessageDialog(
     79                    JOptionPane.showMessageDialog(
    8180                            Main.parent, tr("Could not read from URL: \"{0}\"",url),
    8281                            tr("Error"), JOptionPane.ERROR_MESSAGE);
    8382                } 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),
    8584                            tr("Error"), JOptionPane.ERROR_MESSAGE);
    8685                }
    8786            } 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),
    8988                        tr("Error"), JOptionPane.ERROR_MESSAGE);
    9089            }
Note: See TracChangeset for help on using the changeset viewer.