locationtech / udig-platform

uDig parent project containing all core components. More plugins can be found in community repos: http://github.com/uDig-Community
http://udig.refractions.net
189 stars 133 forks source link

Fixes duplicated ModalTool in toolbar for ModalCategories #605

Closed sschulz92 closed 2 years ago

sschulz92 commented 2 years ago

In the application I am using, a MapView is implemented rather than a MapEditor. While developing stuff, I faced an issue that the toolbar of the view showed ModalTool's several times, which should not be the case.

Reproduction steps:

  1. Add a shapefile as a layer
  2. Create a new object using the edit-tools on this shapefile-layer
  3. Close Map
  4. Open the Map again (Show View / Map)
  5. ModalTools are duplicated (ActionTools are not though!)
  6. Select tool Zoom/Pan/Info --> no change, bug still remains
  7. BUT: EditTool (Create Polygon) --> clean-up of toolbar is done, ModalTools are shown once