Index: /trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java	(revision 8727)
+++ /trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java	(revision 8728)
@@ -261,14 +261,4 @@
         opacityButton = new SideButton(layerOpacityAction, false);
 
-        // -- merge layer action
-        MergeAction mergeLayerAction = new MergeAction();
-        adaptTo(mergeLayerAction, model);
-        adaptTo(mergeLayerAction, selectionModel);
-
-        // -- duplicate layer action
-        DuplicateAction duplicateLayerAction = new DuplicateAction();
-        adaptTo(duplicateLayerAction, model);
-        adaptTo(duplicateLayerAction, selectionModel);
-
         // -- delete layer action
         DeleteLayerAction deleteLayerAction = new DeleteLayerAction();
@@ -292,5 +282,5 @@
         InputMapUtils.addSpacebarAction(layerList, showHideLayerAction);
 
-        createLayout(layerList, true, Arrays.asList(new SideButton[] {
+        createLayout(layerList, true, Arrays.asList(
                 new SideButton(moveUpAction, false),
                 new SideButton(moveDownAction, false),
@@ -298,8 +288,6 @@
                 new SideButton(showHideLayerAction, false),
                 opacityButton,
-                new SideButton(mergeLayerAction, false),
-                new SideButton(duplicateLayerAction, false),
                 new SideButton(deleteLayerAction, false)
-        }));
+        ));
 
         createVisibilityToggleShortcuts();
@@ -1646,4 +1634,15 @@
 
     /**
+     * Creates a {@link DuplicateAction} for <code>layer</code> in the
+     * context of this {@link LayerListDialog}.
+     *
+     * @param layer the layer
+     * @return the action
+     */
+    public DuplicateAction createDuplicateLayerAction(Layer layer) {
+        return new DuplicateAction(layer);
+    }
+
+    /**
      * Returns the layer at given index, or {@code null}.
      * @param index the index
Index: /trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java	(revision 8727)
+++ /trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java	(revision 8728)
@@ -521,4 +521,5 @@
                 SeparatorLayerAction.INSTANCE,
                 LayerListDialog.getInstance().createMergeLayerAction(this),
+                LayerListDialog.getInstance().createDuplicateLayerAction(this),
                 new LayerSaveAction(this),
                 new LayerSaveAsAction(this),
