Changeset 15929 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2020-02-25T20:38:55+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
r15734 r15929 55 55 import org.openstreetmap.josm.gui.SideButton; 56 56 import org.openstreetmap.josm.gui.dialogs.layer.ActivateLayerAction; 57 import org.openstreetmap.josm.gui.dialogs.layer.CycleLayerDownAction; 58 import org.openstreetmap.josm.gui.dialogs.layer.CycleLayerUpAction; 57 59 import org.openstreetmap.josm.gui.dialogs.layer.DeleteLayerAction; 58 60 import org.openstreetmap.josm.gui.dialogs.layer.DuplicateAction; … … 142 144 private final ShowHideLayerAction showHideLayerAction; 143 145 146 private final CycleLayerUpAction cycleLayerUpAction; 147 private final CycleLayerDownAction cycleLayerDownAction; 148 144 149 //TODO This duplicates ShowHide actions functionality 145 150 /** stores which layer index to toggle and executes the ShowHide action if the layer is present */ … … 330 335 InputMapUtils.addSpacebarAction(layerList, showHideLayerAction); 331 336 337 // Cycle layer actions 338 cycleLayerUpAction = new CycleLayerUpAction(); 339 cycleLayerDownAction = new CycleLayerDownAction(); 340 332 341 createLayout(layerList, true, Arrays.asList( 333 342 new SideButton(moveUpAction, false), … … 389 398 ExpertToggleAction.removeExpertModeChangeListener(visibilityWidthListener); 390 399 layerManager.removeLayerChangeListener(visibilityWidthListener); 400 cycleLayerUpAction.destroy(); 401 cycleLayerDownAction.destroy(); 391 402 super.destroy(); 392 403 instance = null;
Note:
See TracChangeset
for help on using the changeset viewer.