Ignore:
Timestamp:
30.08.2009 19:07:24 (3 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/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.