Index: /applications/editors/josm/plugins/simplifyarea/build.xml
===================================================================
--- /applications/editors/josm/plugins/simplifyarea/build.xml	(revision 32516)
+++ /applications/editors/josm/plugins/simplifyarea/build.xml	(revision 32517)
@@ -4,5 +4,5 @@
     <property name="commit.message" value="Initial commit"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="7001"/>
+    <property name="plugin.main.version" value="10353"/>
    	
     <!-- Configure these properties (replace "..." accordingly).
Index: /applications/editors/josm/plugins/simplifyarea/src/sk/zdila/josm/plugin/simplify/SimplifyAreaAction.java
===================================================================
--- /applications/editors/josm/plugins/simplifyarea/src/sk/zdila/josm/plugin/simplify/SimplifyAreaAction.java	(revision 32516)
+++ /applications/editors/josm/plugins/simplifyarea/src/sk/zdila/josm/plugin/simplify/SimplifyAreaAction.java	(revision 32517)
@@ -48,5 +48,5 @@
 
     private List<Bounds> getCurrentEditBounds() {
-        return Main.main.getEditLayer().data.getDataSourceBounds();
+        return Main.getLayerManager().getEditLayer().data.getDataSourceBounds();
     }
 
@@ -65,5 +65,6 @@
         return 0 == HelpAwareOptionPane.showOptionDialog(
                 Main.parent,
-                "<html>" + trn("The selected way has nodes outside of the downloaded data region.", "The selected ways have nodes outside of the downloaded data region.", getCurrentDataSet().getSelectedWays().size())
+                "<html>" + trn("The selected way has nodes outside of the downloaded data region.", "The selected ways have nodes outside of the downloaded data region.", 
+                        Main.getLayerManager().getEditDataSet().getSelectedWays().size())
                 + "<br>" + tr("This can lead to nodes being deleted accidentally.") + "<br>" + tr("Do you want to delete them anyway?") + "</html>",
                 tr("Delete nodes outside of data regions?"), JOptionPane.WARNING_MESSAGE, null, // no special icon
@@ -78,5 +79,6 @@
         final ButtonSpec[] options = new ButtonSpec[] { new ButtonSpec(tr("Yes"), ImageProvider.get("ok"), tr("Simplify all selected ways"), null),
                 new ButtonSpec(tr("Cancel"), ImageProvider.get("cancel"), tr("Cancel operation"), null) };
-        return 0 == HelpAwareOptionPane.showOptionDialog(Main.parent, tr("The selection contains {0} ways. Are you sure you want to simplify them all?", numWays), tr("Simplify ways?"),
+        return 0 == HelpAwareOptionPane.showOptionDialog(Main.parent, tr("The selection contains {0} ways. Are you sure you want to simplify them all?", numWays), 
+                tr("Simplify ways?"),
                 JOptionPane.WARNING_MESSAGE, null, // no special icon
                 options, options[0], null);
@@ -85,5 +87,5 @@
     @Override
     public void actionPerformed(final ActionEvent e) {
-        final Collection<OsmPrimitive> selection = getCurrentDataSet().getSelected();
+        final Collection<OsmPrimitive> selection = getLayerManager().getEditDataSet().getSelected();
 
         final List<Bounds> bounds = getCurrentEditBounds();
@@ -449,8 +451,8 @@
     @Override
     protected void updateEnabledState() {
-        if (getCurrentDataSet() == null) {
+        if (getLayerManager().getEditDataSet() == null) {
             setEnabled(false);
         } else {
-            updateEnabledState(getCurrentDataSet().getSelected());
+            updateEnabledState(getLayerManager().getEditDataSet().getSelected());
         }
     }
