Changeset 16581 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadSVGTask.java
- Timestamp:
- 2009-07-19T18:01:42+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadSVGTask.java
r15961 r16581 29 29 import org.openstreetmap.josm.data.osm.Way; 30 30 import org.openstreetmap.josm.gui.PleaseWaitRunnable; 31 import org.openstreetmap.josm.gui.progress.NullProgressMonitor; 31 32 import org.openstreetmap.josm.io.OsmTransferException; 32 33 import org.openstreetmap.josm.io.ProgressInputStream; … … 54 55 @Override 55 56 public void realRun() throws IOException, OsmTransferException { 56 Main.pleaseWaitDlg.currentAction.setText(tr("Contacting WMS Server..."));57 progressMonitor.indeterminateSubTask(tr("Contacting WMS Server...")); 57 58 try { 58 59 if (wmsInterface.retrieveInterface(wmsLayer)) { … … 60 61 if (svg == null) 61 62 return; 62 Main.pleaseWaitDlg.currentAction.setText(tr("Extract SVG ViewBox..."));63 progressMonitor.indeterminateSubTask(tr("Extract SVG ViewBox...")); 63 64 getViewBox(svg); 64 65 if (viewBox == null) 65 66 return; 66 Main.pleaseWaitDlg.currentAction.setText(tr("Extract best fitting boundary..."));67 progressMonitor.indeterminateSubTask(tr("Extract best fitting boundary...")); 67 68 createWay(svg); 68 69 } … … 187 188 wmsInterface.urlConn.setRequestMethod("GET"); 188 189 wmsInterface.setCookie(); 189 InputStream is = new ProgressInputStream(wmsInterface.urlConn, Main.pleaseWaitDlg);190 InputStream is = new ProgressInputStream(wmsInterface.urlConn, NullProgressMonitor.INSTANCE); 190 191 File file = new File(CadastrePlugin.cacheDir + "boundary.svg"); 191 192 String svg = new String();
Note:
See TracChangeset
for help on using the changeset viewer.
