Index: applications/editors/josm/plugins/cadastre-fr/build.xml
===================================================================
--- applications/editors/josm/plugins/cadastre-fr/build.xml	(revision 16576)
+++ applications/editors/josm/plugins/cadastre-fr/build.xml	(revision 16581)
@@ -26,5 +26,5 @@
                 <attribute name="Plugin-Description" value="A special handler for the French land registry WMS server."/>
                 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/FR:JOSM/Fr:Plugin/Cadastre"/>
-                <attribute name="Plugin-Mainversion" value="1646"/>
+                <attribute name="Plugin-Mainversion" value="1811"/>
                 <attribute name="Plugin-Stage" value="60"/>
                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
Index: applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreGrabber.java
===================================================================
--- applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreGrabber.java	(revision 16576)
+++ applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreGrabber.java	(revision 16581)
@@ -12,6 +12,6 @@
 import javax.imageio.ImageIO;
 
-import org.openstreetmap.josm.Main;
 import org.openstreetmap.josm.data.coor.EastNorth;
+import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
 import org.openstreetmap.josm.io.OsmTransferException;
 import org.openstreetmap.josm.io.ProgressInputStream;
@@ -84,5 +84,5 @@
         wmsInterface.urlConn.setRequestMethod("GET");
         wmsInterface.setCookie();
-        InputStream is = new ProgressInputStream(wmsInterface.urlConn, Main.pleaseWaitDlg);
+        InputStream is = new ProgressInputStream(wmsInterface.urlConn, NullProgressMonitor.INSTANCE);
         BufferedImage img = ImageIO.read(is);
         is.close();
Index: applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreInterface.java
===================================================================
--- applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreInterface.java	(revision 16576)
+++ applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreInterface.java	(revision 16581)
@@ -78,5 +78,5 @@
             urlConn.connect();
             if (urlConn.getResponseCode() != HttpURLConnection.HTTP_OK) {
-                throw (IOException) new IOException("Cannot get Cadastre cookie.");
+                throw new IOException("Cannot get Cadastre cookie.");
             }
             BufferedReader in = new BufferedReader(new InputStreamReader(urlConn.getInputStream()));
@@ -148,5 +148,5 @@
             urlConn.connect();
             if (urlConn.getResponseCode() != HttpURLConnection.HTTP_OK) {
-                throw (IOException) new IOException("Cannot open Cadastre interface. GET response:"+urlConn.getResponseCode());
+                throw new IOException("Cannot open Cadastre interface. GET response:"+urlConn.getResponseCode());
             }
             BufferedReader in = new BufferedReader(new InputStreamReader(urlConn.getInputStream()));
@@ -330,5 +330,5 @@
         urlConn.connect();
         if (urlConn.getResponseCode() != HttpURLConnection.HTTP_OK) {
-            throw (IOException) new IOException("Cannot get Cadastre response.");
+            throw new IOException("Cannot get Cadastre response.");
         }
         BufferedReader in = new BufferedReader(new InputStreamReader(urlConn.getInputStream()));
@@ -371,5 +371,4 @@
 
     public void cancel() {
-        Main.pleaseWaitDlg.currentAction.setText(tr("Aborting..."));
         if (urlConn != null) {
             urlConn.setConnectTimeout(1);
Index: applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadSVGBuilding.java
===================================================================
--- applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadSVGBuilding.java	(revision 16576)
+++ applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadSVGBuilding.java	(revision 16581)
@@ -29,4 +29,5 @@
 import org.openstreetmap.josm.gui.MapView;
 import org.openstreetmap.josm.gui.PleaseWaitRunnable;
+import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
 import org.openstreetmap.josm.io.OsmTransferException;
 import org.openstreetmap.josm.io.ProgressInputStream;
@@ -50,5 +51,5 @@
     @Override
     public void realRun() throws IOException, OsmTransferException {
-        Main.pleaseWaitDlg.currentAction.setText(tr("Contacting WMS Server..."));
+    	progressMonitor.indeterminateSubTask(tr("Contacting WMS Server..."));
         try {
             if (wmsInterface.retrieveInterface(wmsLayer)) {
@@ -232,5 +233,5 @@
         wmsInterface.urlConn.setRequestMethod("GET");
         wmsInterface.setCookie();
-        InputStream is = new ProgressInputStream(wmsInterface.urlConn, Main.pleaseWaitDlg);
+        InputStream is = new ProgressInputStream(wmsInterface.urlConn, NullProgressMonitor.INSTANCE);
         File file = new File(CadastrePlugin.cacheDir + "building.svg");
         String svg = new String();
Index: applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadSVGTask.java
===================================================================
--- applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadSVGTask.java	(revision 16576)
+++ applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadSVGTask.java	(revision 16581)
@@ -29,4 +29,5 @@
 import org.openstreetmap.josm.data.osm.Way;
 import org.openstreetmap.josm.gui.PleaseWaitRunnable;
+import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
 import org.openstreetmap.josm.io.OsmTransferException;
 import org.openstreetmap.josm.io.ProgressInputStream;
@@ -54,5 +55,5 @@
     @Override
     public void realRun() throws IOException, OsmTransferException {
-        Main.pleaseWaitDlg.currentAction.setText(tr("Contacting WMS Server..."));
+    	progressMonitor.indeterminateSubTask(tr("Contacting WMS Server..."));
         try {
             if (wmsInterface.retrieveInterface(wmsLayer)) {
@@ -60,9 +61,9 @@
                 if (svg == null)
                     return;
-                Main.pleaseWaitDlg.currentAction.setText(tr("Extract SVG ViewBox..."));
+                progressMonitor.indeterminateSubTask(tr("Extract SVG ViewBox..."));
                 getViewBox(svg);
                 if (viewBox == null)
                     return;
-                Main.pleaseWaitDlg.currentAction.setText(tr("Extract best fitting boundary..."));
+                progressMonitor.indeterminateSubTask(tr("Extract best fitting boundary..."));
                 createWay(svg);
             }
@@ -187,5 +188,5 @@
         wmsInterface.urlConn.setRequestMethod("GET");
         wmsInterface.setCookie();
-        InputStream is = new ProgressInputStream(wmsInterface.urlConn, Main.pleaseWaitDlg);
+        InputStream is = new ProgressInputStream(wmsInterface.urlConn, NullProgressMonitor.INSTANCE);
         File file = new File(CadastrePlugin.cacheDir + "boundary.svg");
         String svg = new String();
Index: applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSTask.java
===================================================================
--- applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSTask.java	(revision 16576)
+++ applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSTask.java	(revision 16581)
@@ -4,8 +4,9 @@
 
 import java.io.IOException;
+
 import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.data.Bounds;
+import org.openstreetmap.josm.gui.MapView;
 import org.openstreetmap.josm.gui.PleaseWaitRunnable;
-import org.openstreetmap.josm.gui.MapView;
-import org.openstreetmap.josm.data.Bounds;
 
 public class DownloadWMSTask extends PleaseWaitRunnable {
@@ -26,5 +27,5 @@
     @Override
     public void realRun() throws IOException {
-        Main.pleaseWaitDlg.currentAction.setText(tr("Contacting WMS Server..."));
+        progressMonitor.indeterminateSubTask(tr("Contacting WMS Server..."));
         try {
             if (grabber.getWmsInterface().retrieveInterface(wmsLayer)) {
