Index: applications/editors/josm/plugins/utilsplugin/build.xml
===================================================================
--- applications/editors/josm/plugins/utilsplugin/build.xml	(revision 16627)
+++ applications/editors/josm/plugins/utilsplugin/build.xml	(revision 16628)
@@ -25,5 +25,5 @@
                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
                 <attribute name="Plugin-Description" value="Several utilities that make your life easier: e.g. simplify way, join areas, jump to position."/>
-                <attribute name="Plugin-Mainversion" value="1722"/>
+                <attribute name="Plugin-Mainversion" value="1815"/>
                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
             </manifest>
Index: applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/JoinAreasAction.java
===================================================================
--- applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/JoinAreasAction.java	(revision 16627)
+++ applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/JoinAreasAction.java	(revision 16628)
@@ -114,5 +114,5 @@
         if(result != 1) return;
 
-        Collection<OsmPrimitive> selection = Main.ds.getSelectedWays();
+        Collection<OsmPrimitive> selection = Main.main.getCurrentDataSet().getSelectedWays();
 
         int ways = 0;
@@ -177,5 +177,5 @@
         if(joinAreas(selWays[0], selWays[ways == 2 ? 1 : 0])) {
             Main.map.mapView.repaint();
-            DataSet.fireSelectionChanged(Main.ds.getSelected());
+            DataSet.fireSelectionChanged(Main.main.getCurrentDataSet().getSelected());
         } else
             JOptionPane.showMessageDialog(Main.parent, tr("No intersection found. Nothing was changed."));
@@ -448,5 +448,5 @@
     private ArrayList<RelationRole> removeFromRelations(OsmPrimitive osm) {
         ArrayList<RelationRole> result = new ArrayList<RelationRole>();
-        for (Relation r : Main.ds.relations) {
+        for (Relation r : Main.main.getCurrentDataSet().relations) {
             if (r.deleted || r.incomplete) continue;
             for (RelationMember rm : r.members) {
@@ -479,9 +479,9 @@
         for (Way way : ways) {
             nodes.add(way);
-            Main.ds.setSelected(nodes);
+            Main.main.getCurrentDataSet().setSelected(nodes);
             nodes.remove(way);
             new SplitWayAction().actionPerformed(null);
             cmdsCount++;
-            affected.addAll(Main.ds.getSelectedWays());
+            affected.addAll(Main.main.getCurrentDataSet().getSelectedWays());
         }
         return osmprim2way(affected);
@@ -584,10 +584,10 @@
         if(w.isClosed())
             return w;
-        Main.ds.setSelected(w);
+        Main.main.getCurrentDataSet().setSelected(w);
         Way wnew = new Way(w);
         wnew.addNode(wnew.firstNode());
         cmds.add(new ChangeCommand(w, wnew));
         commitCommands(marktr("Closed Way"));
-        return (Way)(Main.ds.getSelectedWays().toArray())[0];
+        return (Way)(Main.main.getCurrentDataSet().getSelectedWays().toArray())[0];
     }
 
@@ -610,5 +610,5 @@
             if(a.nodes.get(0).equals(b.nodes.get(0)) ||
                a.nodes.get(a.nodes.size()-1).equals(b.nodes.get(b.nodes.size()-1))) {
-                Main.ds.setSelected(b);
+                Main.main.getCurrentDataSet().setSelected(b);
                 new ReverseWayAction().actionPerformed(null);
                 cmdsCount++;
@@ -616,5 +616,5 @@
             a = b;
         }
-        Main.ds.setSelected(ways);
+        Main.main.getCurrentDataSet().setSelected(ways);
         // TODO: It might be possible that a confirmation dialog is presented even after reversing (for
         // "strange" ways). If the user cancels this, makeCommitsOneAction will wrongly consume a previous
@@ -622,5 +622,5 @@
         new CombineWayAction().actionPerformed(null);
         cmdsCount++;
-        return (Way)(Main.ds.getSelectedWays().toArray())[0];
+        return (Way)(Main.main.getCurrentDataSet().getSelectedWays().toArray())[0];
     }
 
Index: applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/SimplifyWayAction.java
===================================================================
--- applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/SimplifyWayAction.java	(revision 16627)
+++ applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/SimplifyWayAction.java	(revision 16628)
@@ -36,5 +36,5 @@
 
     public void actionPerformed(ActionEvent e) {
-        Collection<OsmPrimitive> selection = Main.ds.getSelected();
+        Collection<OsmPrimitive> selection = Main.main.getCurrentDataSet().getSelected();
 
         int ways = 0;
@@ -107,5 +107,5 @@
         int toI = wnew.nodes.size() - 1;
         for (int i = wnew.nodes.size() - 1; i >= 0; i--) {
-            CollectBackReferencesVisitor backRefsV = new CollectBackReferencesVisitor(Main.ds, false);
+            CollectBackReferencesVisitor backRefsV = new CollectBackReferencesVisitor(Main.main.getCurrentDataSet(), false);
             backRefsV.visit(wnew.nodes.get(i));
             boolean used = false;
