Index: /applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePlugin.java
===================================================================
--- /applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePlugin.java	(revision 32163)
+++ /applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePlugin.java	(revision 32164)
@@ -35,4 +35,5 @@
 import org.openstreetmap.josm.gui.preferences.map.MapPreference;
 import org.openstreetmap.josm.gui.preferences.projection.ProjectionPreference;
+import org.openstreetmap.josm.gui.util.GuiHelper;
 import org.openstreetmap.josm.plugins.Plugin;
 import org.openstreetmap.josm.plugins.PluginInformation;
@@ -485,16 +486,24 @@
     }
 
+    /**
+     * Ask to change projection if current one is not suitable for French cadastre.
+     */
     public static void askToChangeProjection() {
-        if (JOptionPane.showConfirmDialog(Main.parent,
-                tr("To enable the cadastre WMS plugin, change\n"
-                        + "the current projection to one of the cadastre\n"
-                        + "projections and retry"),
-                        tr("Change the current projection"), JOptionPane.OK_CANCEL_OPTION)
-            == JOptionPane.OK_OPTION) {
-            PreferenceDialog p = new PreferenceDialog(Main.parent);
-            p.selectPreferencesTabByClass(MapPreference.class);
-            p.getTabbedPane().getSetting(ProjectionPreference.class).selectProjection(ProjectionPreference.lambert_cc9);
-            p.setVisible(true);
-        }
+        GuiHelper.runInEDTAndWait(new Runnable() {
+            @Override
+            public void run() {
+                if (JOptionPane.showConfirmDialog(Main.parent,
+                        tr("To enable the cadastre WMS plugin, change\n"
+                                + "the current projection to one of the cadastre\n"
+                                + "projections and retry"),
+                                tr("Change the current projection"), JOptionPane.OK_CANCEL_OPTION)
+                    == JOptionPane.OK_OPTION) {
+                    PreferenceDialog p = new PreferenceDialog(Main.parent);
+                    p.selectPreferencesTabByClass(MapPreference.class);
+                    p.getTabbedPane().getSetting(ProjectionPreference.class).selectProjection(ProjectionPreference.lambert_cc9);
+                    p.setVisible(true);
+                }
+            }
+        });
     }
 }
