Changeset 12620 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddWMSLayerPanel.java
- Timestamp:
- 2017-08-22T22:26:32+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddWMSLayerPanel.java
r11649 r12620 17 17 import javax.swing.JScrollPane; 18 18 19 import org.openstreetmap.josm.Main;20 19 import org.openstreetmap.josm.data.imagery.ImageryInfo; 21 20 import org.openstreetmap.josm.data.imagery.ImageryInfo.ImageryType; … … 25 24 import org.openstreetmap.josm.io.imagery.WMSImagery; 26 25 import org.openstreetmap.josm.tools.GBC; 26 import org.openstreetmap.josm.tools.Logging; 27 27 import org.openstreetmap.josm.tools.Utils; 28 28 … … 79 79 formats.setSelectedItem(wms.getPreferredFormats()); 80 80 } catch (MalformedURLException ex1) { 81 Main.error(ex1, false);81 Logging.log(Logging.LEVEL_ERROR, ex1); 82 82 JOptionPane.showMessageDialog(getParent(), tr("Invalid service URL."), 83 83 tr("WMS Error"), JOptionPane.ERROR_MESSAGE); 84 84 } catch (IOException ex2) { 85 Main.error(ex2, false);85 Logging.log(Logging.LEVEL_ERROR, ex2); 86 86 JOptionPane.showMessageDialog(getParent(), tr("Could not retrieve WMS layer list."), 87 87 tr("WMS Error"), JOptionPane.ERROR_MESSAGE); … … 90 90 String title = tr("WMS Error"); 91 91 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); 93 93 if ((incomingData.startsWith("<html>") || incomingData.startsWith("<HTML>")) 94 94 && (incomingData.endsWith("</html>") || incomingData.endsWith("</HTML>"))) {
Note:
See TracChangeset
for help on using the changeset viewer.
