Community
Participate
Working Groups
When adding a SubModuleNode 'B' as child to another SubModuleNode 'A' via the navigate() API, the given icon of SubModuleNode 'A' (snapshot1) is changed to a closed folder Icon (snapshot2). The changing to a folder icon is maybe ok, but because the child is activated the folder icon should be opened and not closed. Then after removing the SubModuleNode 'B' (dispose) the original icon should appear again (snapshot3).
Created attachment 138028 [details] Screenshots of Navigation aera snapshot1 snapshot2 snapshot3
A sample project to reproduce this would be very helpful.
Created attachment 150111 [details] patch
The patch includes the fix and an enhancement of the ExampleClient to reproduce the Bug. The Problem can be reproduced in the SWT ExampleClient after applying the patch only on the example client project. Go to Module 1.1.2 (closeable) and then select Navigation. Press the Button "Add Sub-Module this Node". Without the Fix, the folder of the SubModule "Navigation" would be closed. With the fix it is open. Then change to the "Navigate" SubModule and click the button "Remove all children". Without the fix the folder icon would still be there. With the fix the original icon is loaded. The problem was, that the method getImageKey in TreeRidgetLabelProvider was called before the expanded state was set.
Elias, could you please review the patch, since you recently made some changes in the same area?
Thanks, will look at this tomorrow (Thu).
Thanks - looks good! Committed to HEAD.