Changes between Initial Version and Version 1 of Ticket #13510, comment 6
- Timestamp:
- 2016-09-02T22:02:56+02:00 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #13510, comment 6
initial v1 1 There are twooptions for that:2 - Register a `LayerAvailabilityListener` if we want to know if any layer is present or not ( like here)1 There are several options for that: 2 - Register a `LayerAvailabilityListener` if we want to know if any layer is present or not (I prefer this one) 3 3 - Register a `ActiveLayerChangeListener` if the option depends on the active layer (which may be `null`). 4 - Use `isLastLayer()` on the `LayerRemoveEvent` to see if the last layer was removed. (quick, dirty) 4 5 5 The nice way would be to have a unified way for all menus to be disabled if all items are disabled. Then the menu items can simply be disabled. This is what I did in my main menu branch. 6 The nice way would be to have a unified way for all menus to be disabled if all items are disabled. Then the menu items can simply be disabled. This is what I did in my main menu branch. We could bind the zoom actions directly to the map view and add them whenever the map view is added to the view, remove them otherwise.


