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/CadastreInterface.java

    r16007 r16581  
    7878            urlConn.connect();
    7979            if (urlConn.getResponseCode() != HttpURLConnection.HTTP_OK) {
    80                 throw (IOException) new IOException("Cannot get Cadastre cookie.");
     80                throw new IOException("Cannot get Cadastre cookie.");
    8181            }
    8282            BufferedReader in = new BufferedReader(new InputStreamReader(urlConn.getInputStream()));
     
    148148            urlConn.connect();
    149149            if (urlConn.getResponseCode() != HttpURLConnection.HTTP_OK) {
    150                 throw (IOException) new IOException("Cannot open Cadastre interface. GET response:"+urlConn.getResponseCode());
     150                throw new IOException("Cannot open Cadastre interface. GET response:"+urlConn.getResponseCode());
    151151            }
    152152            BufferedReader in = new BufferedReader(new InputStreamReader(urlConn.getInputStream()));
     
    330330        urlConn.connect();
    331331        if (urlConn.getResponseCode() != HttpURLConnection.HTTP_OK) {
    332             throw (IOException) new IOException("Cannot get Cadastre response.");
     332            throw new IOException("Cannot get Cadastre response.");
    333333        }
    334334        BufferedReader in = new BufferedReader(new InputStreamReader(urlConn.getInputStream()));
     
    371371
    372372    public void cancel() {
    373         Main.pleaseWaitDlg.currentAction.setText(tr("Aborting..."));
    374373        if (urlConn != null) {
    375374            urlConn.setConnectTimeout(1);
Note: See TracChangeset for help on using the changeset viewer.