- Timestamp:
- 2015-09-04T10:25:30+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
r8540 r8728 261 261 opacityButton = new SideButton(layerOpacityAction, false); 262 262 263 // -- merge layer action264 MergeAction mergeLayerAction = new MergeAction();265 adaptTo(mergeLayerAction, model);266 adaptTo(mergeLayerAction, selectionModel);267 268 // -- duplicate layer action269 DuplicateAction duplicateLayerAction = new DuplicateAction();270 adaptTo(duplicateLayerAction, model);271 adaptTo(duplicateLayerAction, selectionModel);272 273 263 // -- delete layer action 274 264 DeleteLayerAction deleteLayerAction = new DeleteLayerAction(); … … 292 282 InputMapUtils.addSpacebarAction(layerList, showHideLayerAction); 293 283 294 createLayout(layerList, true, Arrays.asList( new SideButton[] {284 createLayout(layerList, true, Arrays.asList( 295 285 new SideButton(moveUpAction, false), 296 286 new SideButton(moveDownAction, false), … … 298 288 new SideButton(showHideLayerAction, false), 299 289 opacityButton, 300 new SideButton(mergeLayerAction, false),301 new SideButton(duplicateLayerAction, false),302 290 new SideButton(deleteLayerAction, false) 303 }));291 )); 304 292 305 293 createVisibilityToggleShortcuts(); … … 1646 1634 1647 1635 /** 1636 * Creates a {@link DuplicateAction} for <code>layer</code> in the 1637 * context of this {@link LayerListDialog}. 1638 * 1639 * @param layer the layer 1640 * @return the action 1641 */ 1642 public DuplicateAction createDuplicateLayerAction(Layer layer) { 1643 return new DuplicateAction(layer); 1644 } 1645 1646 /** 1648 1647 * Returns the layer at given index, or {@code null}. 1649 1648 * @param index the index -
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r8565 r8728 521 521 SeparatorLayerAction.INSTANCE, 522 522 LayerListDialog.getInstance().createMergeLayerAction(this), 523 LayerListDialog.getInstance().createDuplicateLayerAction(this), 523 524 new LayerSaveAction(this), 524 525 new LayerSaveAsAction(this),
Note:
See TracChangeset
for help on using the changeset viewer.