Changeset 20412 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadSVGTask.java
- Timestamp:
- 2010-03-11T00:58:51+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadSVGTask.java
r20390 r20412 46 46 private String svg = null; 47 47 private EastNorthBound viewBox = null; 48 private static String errorMessage; 48 49 49 50 public DownloadSVGTask(WMSLayer wmsLayer) { … … 57 58 public void realRun() throws IOException, OsmTransferException { 58 59 progressMonitor.indeterminateSubTask(tr("Contacting WMS Server...")); 60 errorMessage = null; 59 61 try { 60 62 if (wmsInterface.retrieveInterface(wmsLayer)) { … … 71 73 } catch (DuplicateLayerException e) { 72 74 System.err.println("removed a duplicated layer"); 75 } catch (WMSException e) { 76 errorMessage = e.getMessage(); 77 grabber.getWmsInterface().resetCookie(); 73 78 } 74 79 } … … 218 223 } 219 224 Main.worker.execute(new DownloadSVGTask(wmsLayer)); 225 if (errorMessage != null) 226 JOptionPane.showMessageDialog(Main.parent, errorMessage); 220 227 } 221 228
Note:
See TracChangeset
for help on using the changeset viewer.
