Ignore:
Timestamp:
2009-07-19T18:01:42+02:00 (17 years ago)
Author:
jttt
Message:

Made work with JOSM new ProgressMonitor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadSVGTask.java

    r15961 r16581  
    2929import org.openstreetmap.josm.data.osm.Way;
    3030import org.openstreetmap.josm.gui.PleaseWaitRunnable;
     31import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
    3132import org.openstreetmap.josm.io.OsmTransferException;
    3233import org.openstreetmap.josm.io.ProgressInputStream;
     
    5455    @Override
    5556    public void realRun() throws IOException, OsmTransferException {
    56         Main.pleaseWaitDlg.currentAction.setText(tr("Contacting WMS Server..."));
     57        progressMonitor.indeterminateSubTask(tr("Contacting WMS Server..."));
    5758        try {
    5859            if (wmsInterface.retrieveInterface(wmsLayer)) {
     
    6061                if (svg == null)
    6162                    return;
    62                 Main.pleaseWaitDlg.currentAction.setText(tr("Extract SVG ViewBox..."));
     63                progressMonitor.indeterminateSubTask(tr("Extract SVG ViewBox..."));
    6364                getViewBox(svg);
    6465                if (viewBox == null)
    6566                    return;
    66                 Main.pleaseWaitDlg.currentAction.setText(tr("Extract best fitting boundary..."));
     67                progressMonitor.indeterminateSubTask(tr("Extract best fitting boundary..."));
    6768                createWay(svg);
    6869            }
     
    187188        wmsInterface.urlConn.setRequestMethod("GET");
    188189        wmsInterface.setCookie();
    189         InputStream is = new ProgressInputStream(wmsInterface.urlConn, Main.pleaseWaitDlg);
     190        InputStream is = new ProgressInputStream(wmsInterface.urlConn, NullProgressMonitor.INSTANCE);
    190191        File file = new File(CadastrePlugin.cacheDir + "boundary.svg");
    191192        String svg = new String();
Note: See TracChangeset for help on using the changeset viewer.