Changeset 5018 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
- Timestamp:
- 2012-02-22T19:54:15+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
r4999 r5018 90 90 instance = new LayerListDialog(mapFrame); 91 91 92 MultikeyActionsHandler.getInstance().addAction(instance.new ShowHideLayerAction(false));93 MultikeyActionsHandler.getInstance().addAction(instance.new ActivateLayerAction());94 JumpToMarkerActions.initialize();95 92 } 96 93 … … 120 117 121 118 ActivateLayerAction activateLayerAction; 122 119 ShowHideLayerAction showHideLayerAction; 120 123 121 //TODO This duplicates ShowHide actions functionality 124 122 /** stores which layer index to toggle and executes the ShowHide action if the layer is present */ … … 240 238 activateLayerAction = new ActivateLayerAction(); 241 239 activateLayerAction.updateEnabledState(); 240 MultikeyActionsHandler.getInstance().addAction(activateLayerAction); 242 241 adaptTo(activateLayerAction, selectionModel); 242 243 JumpToMarkerActions.initialize(); 243 244 244 245 // -- show hide action 245 ShowHideLayerAction showHideLayerAction = new ShowHideLayerAction(); 246 showHideLayerAction = new ShowHideLayerAction(); 247 MultikeyActionsHandler.getInstance().addAction(showHideLayerAction); 246 248 adaptTo(showHideLayerAction, selectionModel); 247 249 … … 345 347 Main.unregisterActionShortcut(visibilityToggleActions[i], visibilityToggleShortcuts[i]); 346 348 } 349 MultikeyActionsHandler.getInstance().removeAction(activateLayerAction); 350 MultikeyActionsHandler.getInstance().removeAction(showHideLayerAction); 351 JumpToMarkerActions.unregisterActions(); 347 352 super.destroy(); 348 353 instance = null;
Note:
See TracChangeset
for help on using the changeset viewer.
