Community
Participate
Working Groups
If I have 4 folders with changes under them, and folder 1&3 are expanded, and folder 2&4 collapsed, like this: + - + - And I select the first folder and commit the changes, folders 2,3, and 4 seem to slide up and reuse the TreeItems that were there. As a result, the User's expansion state is completely screwed up. In the above example, folder 3 gets collapsed, and 2 and 4 are expanded, completely inverting the prior state.
Investigating. This has annoyed me as well. Our code simply calls refresh() on the TreeViewer. It's the tree viewer's refresh code that "maintains" the expansion state, if I can use that word. It appears that there is a bug in their refresh() code because it seems to remember expanded state based solely on the item's index, rather than based on which Object is underneath. I will log a UI bug describing this.
This is actually a duplicate of 5771, no action required by the Team team. When 5771 is fixed the sync view will function as expected. Thanks for the bug report. *** This bug has been marked as a duplicate of 5771 ***