Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: UDIG 1.2.2
-
Fix Version/s: UDIG 1.3.0
-
Component/s: application
-
Labels:None
-
Environment:Linux 64 bit + Windows 7 64 bits
Description
If you select a feature in the Map view and press Canc button on keyboard to delete this feature, all the Map will be deleted from the filesystem.
- the delete key does the correct thing from the layers view (DEL removes a layer)
- it does NOT do the correct thing from the projects view (i.e. Project Explorer)
In comparing the two implementations; the LayersView takes a few extra steps with the creation of its own Delete action (rather than recycling the one from ToolbarManager).
I am going to make them work the same and then test.
Update: Okay that did not work out (i.e. no effect other than consistent code).
-------
Looking at UDIGGenericAction (the super class of Delete) now. The base UDIGGenericAction class it checks the current workbench selection; and dispatches accordingly.
1) The selection (for a Map) comes from ReplaceableSelectionProvider.
2) For the Zoom and Pan tools that class delegates to MapEditorSelectionProvider - which has the Map as the selected item
So for the zoom and pan tools considers the map to be the current selection (incase people want to look at properties or something). So the delete key is correctly deleting the current selection ... what can we do about that.