Ignore:
Timestamp:
2009-07-19T18:01:42+02:00 (16 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/DownloadSVGBuilding.java

    r16160 r16581  
    2929import org.openstreetmap.josm.gui.MapView;
    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;
     
    5051    @Override
    5152    public void realRun() throws IOException, OsmTransferException {
    52         Main.pleaseWaitDlg.currentAction.setText(tr("Contacting WMS Server..."));
     53        progressMonitor.indeterminateSubTask(tr("Contacting WMS Server..."));
    5354        try {
    5455            if (wmsInterface.retrieveInterface(wmsLayer)) {
     
    232233        wmsInterface.urlConn.setRequestMethod("GET");
    233234        wmsInterface.setCookie();
    234         InputStream is = new ProgressInputStream(wmsInterface.urlConn, Main.pleaseWaitDlg);
     235        InputStream is = new ProgressInputStream(wmsInterface.urlConn, NullProgressMonitor.INSTANCE);
    235236        File file = new File(CadastrePlugin.cacheDir + "building.svg");
    236237        String svg = new String();
Note: See TracChangeset for help on using the changeset viewer.