Index: /applications/editors/josm/plugins/indoor_sweepline/build.xml
===================================================================
--- /applications/editors/josm/plugins/indoor_sweepline/build.xml	(revision 34520)
+++ /applications/editors/josm/plugins/indoor_sweepline/build.xml	(revision 34521)
@@ -5,5 +5,5 @@
     <property name="commit.message" value="Commit message"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="13558"/>
+    <property name="plugin.main.version" value="14153"/>
 
     <property name="plugin.author" value="Roland M. Olbricht"/>
Index: /applications/editors/josm/plugins/indoor_sweepline/src/indoor_sweepline/IndoorSweeplineWizardAction.java
===================================================================
--- /applications/editors/josm/plugins/indoor_sweepline/src/indoor_sweepline/IndoorSweeplineWizardAction.java	(revision 34520)
+++ /applications/editors/josm/plugins/indoor_sweepline/src/indoor_sweepline/IndoorSweeplineWizardAction.java	(revision 34521)
@@ -8,6 +8,6 @@
 import javax.swing.JOptionPane;
 
-import org.openstreetmap.josm.Main;
 import org.openstreetmap.josm.actions.JosmAction;
+import org.openstreetmap.josm.data.projection.ProjectionRegistry;
 import org.openstreetmap.josm.gui.MainApplication;
 import org.openstreetmap.josm.gui.layer.Layer;
@@ -31,18 +31,18 @@
     public void actionPerformed(ActionEvent event) {
         if (layer == null)
-            JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(Main.parent),
+            JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(MainApplication.getMainFrame()),
                     "No default layer found.");
         else if (!(layer instanceof OsmDataLayer))
-            JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(Main.parent),
+            JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(MainApplication.getMainFrame()),
                     "The default layer is not an OSM layer.");
         else if (MainApplication.getMap() == null)
-            JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(Main.parent),
+            JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(MainApplication.getMainFrame()),
                     "No map found.");
         else if (MainApplication.getMap().mapView == null)
-            JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(Main.parent),
+            JOptionPane.showMessageDialog(JOptionPane.getFrameForComponent(MainApplication.getMainFrame()),
                     "No map view found.");
         else
             new IndoorSweeplineController((OsmDataLayer) layer,
-                    Main.getProjection().eastNorth2latlon(MainApplication.getMap().mapView.getCenter()));
+                    ProjectionRegistry.getProjection().eastNorth2latlon(MainApplication.getMap().mapView.getCenter()));
     }
 
Index: /applications/editors/josm/plugins/indoor_sweepline/src/indoor_sweepline/IndoorSweeplineWizardDialog.java
===================================================================
--- /applications/editors/josm/plugins/indoor_sweepline/src/indoor_sweepline/IndoorSweeplineWizardDialog.java	(revision 34520)
+++ /applications/editors/josm/plugins/indoor_sweepline/src/indoor_sweepline/IndoorSweeplineWizardDialog.java	(revision 34521)
@@ -32,5 +32,5 @@
 import javax.swing.table.TableModel;
 
-import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.gui.MainApplication;
 import org.openstreetmap.josm.tools.Logging;
 
@@ -38,5 +38,5 @@
 
     public IndoorSweeplineWizardDialog(IndoorSweeplineController controller) {
-        super(JOptionPane.getFrameForComponent(Main.parent), "Indoor Sweepline Wizard", false);
+        super(JOptionPane.getFrameForComponent(MainApplication.getMainFrame()), "Indoor Sweepline Wizard", false);
 
         this.controller = controller;
@@ -69,5 +69,5 @@
     public void setVisible(boolean visible) {
         if (visible)
-            setLocationRelativeTo(JOptionPane.getFrameForComponent(Main.parent));
+            setLocationRelativeTo(JOptionPane.getFrameForComponent(MainApplication.getMainFrame()));
         super.setVisible(visible);
     }
