Community
Participate
Working Groups
I have a CheckboxTreeViewer, and there are some long running operations over a network to provide the content, so I use a DeferredTreeContentManager to fetch the children, and put a "Pending..." node while it's fetching. So far so good. I wanted to make it so that checking one item checks all the children automatically so i tried using setSubtreeChecked(), which is exactly what I was looking for, and it seems to work, but it causes problems: 1) If I haven't fully expanded my tree yet and I do it, it prevents me from expanding the tree afterwards past what it was already expanded. 2) There's some flickering with the [+] sign appearing for a short time on the leaf nodes in the tree. It appears that it's trying to get all the child items in the tree so that it can set them as checked, but with deferred content it is seeing the pending item and stopping there, thinking that's the end of it, while in fact it's not. I am not sure why it's preventing me from expanding though. This is not a huge problem because this is just a convenience method - I can provide my own implementation that works with deferred content.
*** This bug has been marked as a duplicate of bug 205923 ***