Ignore:
Timestamp:
2017-08-22T22:26:32+02:00 (9 years ago)
Author:
Don-vip
Message:

see #15182 - deprecate all Main logging methods and introduce suitable replacements in Logging for most of them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddWMSLayerPanel.java

    r11649 r12620  
    1717import javax.swing.JScrollPane;
    1818
    19 import org.openstreetmap.josm.Main;
    2019import org.openstreetmap.josm.data.imagery.ImageryInfo;
    2120import org.openstreetmap.josm.data.imagery.ImageryInfo.ImageryType;
     
    2524import org.openstreetmap.josm.io.imagery.WMSImagery;
    2625import org.openstreetmap.josm.tools.GBC;
     26import org.openstreetmap.josm.tools.Logging;
    2727import org.openstreetmap.josm.tools.Utils;
    2828
     
    7979                formats.setSelectedItem(wms.getPreferredFormats());
    8080            } catch (MalformedURLException ex1) {
    81                 Main.error(ex1, false);
     81                Logging.log(Logging.LEVEL_ERROR, ex1);
    8282                JOptionPane.showMessageDialog(getParent(), tr("Invalid service URL."),
    8383                        tr("WMS Error"), JOptionPane.ERROR_MESSAGE);
    8484            } catch (IOException ex2) {
    85                 Main.error(ex2, false);
     85                Logging.log(Logging.LEVEL_ERROR, ex2);
    8686                JOptionPane.showMessageDialog(getParent(), tr("Could not retrieve WMS layer list."),
    8787                        tr("WMS Error"), JOptionPane.ERROR_MESSAGE);
     
    9090                String title = tr("WMS Error");
    9191                StringBuilder message = new StringBuilder(tr("Could not parse WMS layer list."));
    92                 Main.error(ex3, "Could not parse WMS layer list. Incoming data:\n"+incomingData);
     92                Logging.log(Logging.LEVEL_ERROR, "Could not parse WMS layer list. Incoming data:\n"+incomingData, ex3);
    9393                if ((incomingData.startsWith("<html>") || incomingData.startsWith("<HTML>"))
    9494                  && (incomingData.endsWith("</html>") || incomingData.endsWith("</HTML>"))) {
Note: See TracChangeset for help on using the changeset viewer.