Index: /applications/editors/josm/plugins/gpxfilter/build.xml
===================================================================
--- /applications/editors/josm/plugins/gpxfilter/build.xml	(revision 32466)
+++ /applications/editors/josm/plugins/gpxfilter/build.xml	(revision 32467)
@@ -4,5 +4,5 @@
     <property name="commit.message" value="GPXFilter: moved to Alt-Shift-X"/>
     <!-- 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"/>
 
     <property name="plugin.author" value="Upliner"/>
Index: /applications/editors/josm/plugins/gpxfilter/src/gpxfilter/AddEGpxLayerAction.java
===================================================================
--- /applications/editors/josm/plugins/gpxfilter/src/gpxfilter/AddEGpxLayerAction.java	(revision 32466)
+++ /applications/editors/josm/plugins/gpxfilter/src/gpxfilter/AddEGpxLayerAction.java	(revision 32467)
@@ -22,10 +22,10 @@
     @Override
     protected void updateEnabledState() {
-        setEnabled(getCurrentDataSet() != null);
+        setEnabled(getLayerManager().getEditDataSet() != null);
     }
 
     @Override
-	public void actionPerformed(ActionEvent arg0)  {
-        Main.main.addLayer(new EGpxLayer(Main.map.mapView.getRealBounds()));
+    public void actionPerformed(ActionEvent arg0)  {
+        getLayerManager().addLayer(new EGpxLayer(Main.map.mapView.getRealBounds()));
     }
 }
