Index: applications/editors/josm/plugins/CommandLine/build.xml
===================================================================
--- applications/editors/josm/plugins/CommandLine/build.xml	(revision 33201)
+++ applications/editors/josm/plugins/CommandLine/build.xml	(revision 33238)
@@ -4,5 +4,5 @@
     <property name="commit.message" value="JOSM/CommandLine: fix exception after JOSM update"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="10580"/>
+    <property name="plugin.main.version" value="11713"/>
 
     <!-- Configure these properties (replace "..." accordingly).
Index: applications/editors/josm/plugins/CommandLine/src/CommandLine/AbstractOsmAction.java
===================================================================
--- applications/editors/josm/plugins/CommandLine/src/CommandLine/AbstractOsmAction.java	(revision 33201)
+++ applications/editors/josm/plugins/CommandLine/src/CommandLine/AbstractOsmAction.java	(revision 33238)
@@ -15,5 +15,4 @@
 import org.openstreetmap.josm.data.osm.DataSet;
 import org.openstreetmap.josm.data.osm.OsmPrimitive;
-import org.openstreetmap.josm.gui.MapFrame;
 import org.openstreetmap.josm.tools.ImageProvider;
 
@@ -27,6 +26,6 @@
     private boolean isCtrlDown;
 
-    protected AbstractOsmAction(MapFrame mapFrame, CommandLine parentPlugin, String activeCursorIcon) {
-        super(null, "addsegment.png", null, mapFrame, ImageProvider.getCursor("normal", "selection"));
+    protected AbstractOsmAction(CommandLine parentPlugin, String activeCursorIcon) {
+        super(null, "addsegment.png", null, ImageProvider.getCursor("normal", "selection"));
         this.parentPlugin = parentPlugin;
         cursorNormal = ImageProvider.getCursor("normal", "selection");
Index: applications/editors/josm/plugins/CommandLine/src/CommandLine/AnyAction.java
===================================================================
--- applications/editors/josm/plugins/CommandLine/src/CommandLine/AnyAction.java	(revision 33201)
+++ applications/editors/josm/plugins/CommandLine/src/CommandLine/AnyAction.java	(revision 33238)
@@ -6,10 +6,9 @@
 import org.openstreetmap.josm.Main;
 import org.openstreetmap.josm.data.osm.OsmPrimitive;
-import org.openstreetmap.josm.gui.MapFrame;
 
 public class AnyAction extends AbstractOsmAction<OsmPrimitive> {
 
-    public AnyAction(MapFrame mapFrame, CommandLine parentPlugin) {
-        super(mapFrame, parentPlugin, "joinnode");
+    public AnyAction(CommandLine parentPlugin) {
+        super(parentPlugin, "joinnode");
     }
 
Index: applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java
===================================================================
--- applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java	(revision 33201)
+++ applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java	(revision 33238)
@@ -239,24 +239,24 @@
             switch (currentType) {
             case POINT:
-                action = new PointAction(currentMapFrame, this);
+                action = new PointAction(this);
                 break;
             case WAY:
-                action = new WayAction(currentMapFrame, this);
+                action = new WayAction(this);
                 break;
             case NODE:
-                action = new NodeAction(currentMapFrame, this);
+                action = new NodeAction(this);
                 break;
             case RELATION:
-                action = new RelationAction(currentMapFrame, this);
+                action = new RelationAction(this);
                 break;
             case ANY:
-                action = new AnyAction(currentMapFrame, this);
+                action = new AnyAction(this);
                 break;
             case LENGTH:
-                action = new LengthAction(currentMapFrame, this);
+                action = new LengthAction(this);
                 break;
             case USERNAME:
                 loadParameter(Main.pref.get("osm-server.username", null), true);
-                action = new DummyAction(currentMapFrame, this);
+                action = new DummyAction(this);
                 break;
             case IMAGERYURL:
@@ -278,5 +278,5 @@
                     loadParameter(url.isEmpty() ? info.getImageryType().getTypeString() : url, true);
                 }
-                action = new DummyAction(currentMapFrame, this);
+                action = new DummyAction(this);
                 break;
             case IMAGERYOFFSET:
@@ -294,8 +294,8 @@
                 }
                 loadParameter((String.valueOf(((ImageryLayer) olayer).getDx()) + "," + String.valueOf(((ImageryLayer) olayer).getDy())), true);
-                action = new DummyAction(currentMapFrame, this);
+                action = new DummyAction(this);
                 break;
             default:
-                action = new DummyAction(currentMapFrame, this);
+                action = new DummyAction(this);
                 break;
             }
Index: applications/editors/josm/plugins/CommandLine/src/CommandLine/DummyAction.java
===================================================================
--- applications/editors/josm/plugins/CommandLine/src/CommandLine/DummyAction.java	(revision 33201)
+++ applications/editors/josm/plugins/CommandLine/src/CommandLine/DummyAction.java	(revision 33238)
@@ -8,5 +8,4 @@
 import org.openstreetmap.josm.Main;
 import org.openstreetmap.josm.actions.mapmode.MapMode;
-import org.openstreetmap.josm.gui.MapFrame;
 import org.openstreetmap.josm.tools.ImageProvider;
 
@@ -14,6 +13,6 @@
     private final CommandLine parentPlugin;
 
-    public DummyAction(MapFrame mapFrame, CommandLine parentPlugin) {
-            super(null, "addsegment.png", null, mapFrame, ImageProvider.getCursor("normal", null));
+    public DummyAction(CommandLine parentPlugin) {
+            super(null, "addsegment.png", null, ImageProvider.getCursor("normal", null));
             this.parentPlugin = parentPlugin;
     }
Index: applications/editors/josm/plugins/CommandLine/src/CommandLine/LengthAction.java
===================================================================
--- applications/editors/josm/plugins/CommandLine/src/CommandLine/LengthAction.java	(revision 33201)
+++ applications/editors/josm/plugins/CommandLine/src/CommandLine/LengthAction.java	(revision 33238)
@@ -24,5 +24,5 @@
 import org.openstreetmap.josm.data.osm.Node;
 import org.openstreetmap.josm.data.osm.OsmPrimitive;
-import org.openstreetmap.josm.gui.MapFrame;
+import org.openstreetmap.josm.data.preferences.ColorProperty;
 import org.openstreetmap.josm.gui.MapView;
 import org.openstreetmap.josm.gui.layer.Layer;
@@ -45,8 +45,8 @@
     private boolean drawing;
 
-    public LengthAction(MapFrame mapFrame, CommandLine parentPlugin) {
-        super(null, "addsegment.png", null, mapFrame, ImageProvider.getCursor("crosshair", null));
+    public LengthAction(CommandLine parentPlugin) {
+        super(null, "addsegment.png", null, ImageProvider.getCursor("crosshair", null));
         this.parentPlugin = parentPlugin;
-        selectedColor = Main.pref.getColor(marktr("selected"), Color.red);
+        selectedColor = new ColorProperty(marktr("selected"), Color.red).get();
         cursorCrosshair = ImageProvider.getCursor("crosshair", null);
         cursorJoinNode = ImageProvider.getCursor("crosshair", "joinnode");
Index: applications/editors/josm/plugins/CommandLine/src/CommandLine/NodeAction.java
===================================================================
--- applications/editors/josm/plugins/CommandLine/src/CommandLine/NodeAction.java	(revision 33201)
+++ applications/editors/josm/plugins/CommandLine/src/CommandLine/NodeAction.java	(revision 33238)
@@ -7,10 +7,9 @@
 import org.openstreetmap.josm.data.osm.Node;
 import org.openstreetmap.josm.data.osm.OsmPrimitive;
-import org.openstreetmap.josm.gui.MapFrame;
 
 public class NodeAction extends AbstractOsmAction<Node> {
 
-    public NodeAction(MapFrame mapFrame, CommandLine parentPlugin) {
-        super(mapFrame, parentPlugin, "joinnode");
+    public NodeAction(CommandLine parentPlugin) {
+        super(parentPlugin, "joinnode");
     }
 
Index: applications/editors/josm/plugins/CommandLine/src/CommandLine/PointAction.java
===================================================================
--- applications/editors/josm/plugins/CommandLine/src/CommandLine/PointAction.java	(revision 33201)
+++ applications/editors/josm/plugins/CommandLine/src/CommandLine/PointAction.java	(revision 33238)
@@ -21,5 +21,4 @@
 import org.openstreetmap.josm.data.osm.Node;
 import org.openstreetmap.josm.data.osm.OsmPrimitive;
-import org.openstreetmap.josm.gui.MapFrame;
 import org.openstreetmap.josm.tools.ImageProvider;
 
@@ -34,6 +33,6 @@
     private boolean isCtrlDown;
 
-    public PointAction(MapFrame mapFrame, CommandLine parentPlugin) {
-        super(null, "addsegment.png", null, mapFrame, ImageProvider.getCursor("crosshair", null));
+    public PointAction(CommandLine parentPlugin) {
+        super(null, "addsegment.png", null, ImageProvider.getCursor("crosshair", null));
         this.parentPlugin = parentPlugin;
         cursorCrosshair = ImageProvider.getCursor("crosshair", null);
Index: applications/editors/josm/plugins/CommandLine/src/CommandLine/RelationAction.java
===================================================================
--- applications/editors/josm/plugins/CommandLine/src/CommandLine/RelationAction.java	(revision 33201)
+++ applications/editors/josm/plugins/CommandLine/src/CommandLine/RelationAction.java	(revision 33238)
@@ -8,5 +8,4 @@
 import org.openstreetmap.josm.Main;
 import org.openstreetmap.josm.actions.mapmode.MapMode;
-import org.openstreetmap.josm.gui.MapFrame;
 import org.openstreetmap.josm.tools.ImageProvider;
 
@@ -14,6 +13,6 @@
     private final CommandLine parentPlugin;
 
-    public RelationAction(MapFrame mapFrame, CommandLine parentPlugin) {
-        super(null, "addsegment.png", null, mapFrame, ImageProvider.getCursor("normal", null));
+    public RelationAction(CommandLine parentPlugin) {
+        super(null, "addsegment.png", null, ImageProvider.getCursor("normal", null));
         this.parentPlugin = parentPlugin;
     }
Index: applications/editors/josm/plugins/CommandLine/src/CommandLine/WayAction.java
===================================================================
--- applications/editors/josm/plugins/CommandLine/src/CommandLine/WayAction.java	(revision 33201)
+++ applications/editors/josm/plugins/CommandLine/src/CommandLine/WayAction.java	(revision 33238)
@@ -7,10 +7,9 @@
 import org.openstreetmap.josm.data.osm.OsmPrimitive;
 import org.openstreetmap.josm.data.osm.Way;
-import org.openstreetmap.josm.gui.MapFrame;
 
 public class WayAction extends AbstractOsmAction<Way> {
 
-    public WayAction(MapFrame mapFrame, CommandLine parentPlugin) {
-        super(mapFrame, parentPlugin, "joinway");
+    public WayAction(CommandLine parentPlugin) {
+        super(parentPlugin, "joinway");
     }
 
