Changeset 20412 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSPlanImage.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/DownloadWMSPlanImage.java
r20390 r20412 21 21 private Bounds bounds; 22 22 private boolean dontGeoreference = false; 23 private static String errorMessage; 23 24 24 25 private class Task extends PleaseWaitRunnable { … … 31 32 public void realRun() throws IOException { 32 33 progressMonitor.indeterminateSubTask(tr("Contacting cadastre WMS ...")); 34 errorMessage = null; 33 35 try { 34 36 if (grabber.getWmsInterface().retrieveInterface(wmsLayer)) { … … 85 87 // we tried to grab onto a duplicated layer (removed) 86 88 System.err.println("removed a duplicated layer"); 89 } catch (WMSException e) { 90 errorMessage = e.getMessage(); 91 grabber.getWmsInterface().resetCookie(); 87 92 } 88 93 } … … 108 113 this.bounds = bounds; 109 114 task = Main.worker.submit(t, t); 115 if (errorMessage != null) 116 JOptionPane.showMessageDialog(Main.parent, errorMessage); 110 117 } 111 118
Note:
See TracChangeset
for help on using the changeset viewer.
