Community
Participate
Working Groups
In ISubmoduleNode should be a flag (setSelectable) indicating if this SubmoduleNode is selectable. If it is not selectable and the SubmoduleNode has at least one child and this node is selected, then the first child should be selected instead. The default value should be true, so existing code does not break. If selectable is true the developer does not have to provide a SubmoduleView or SubmoduleController, because it isn't used anyway.
Created attachment 142105 [details] Added setSelectable in ISubModuleNode
Created attachment 142115 [details] Patch with additional unittests
Created attachment 142220 [details] Uses new DefaultValue Annotation API
Created attachment 142251 [details] throws RuntimeException if node with selectable = false without children gets selected
Created attachment 142263 [details] Example showing selectable SubModules in SwtExampleClient
I will commit the patch for the solution and for the example, how the feature is not complete yet. If you click on a not selectable module, the child is selected, if you click on the same module again, the module is actually selected in the try although the workarea remains unchanged.
We don´t need any logic for this in the NavigationProcessor. Simplest way to do this is in the SubModuleNode.