Virtual Tree and Lazy Tree Content Provider [message #310334] |
Tue, 28 November 2006 20:07 |
Eclipse User |
|
|
|
Originally posted by: pecze.us.NO_SPAM.ibm.com
I saw an earlier post asking a similar question, but I didn't see a good
answer for this.
I have a tree viewer that I've defined as Virtual.
The content provider implements ILazyTreeContentProvider. When the tree is
displayed, the top level elements are displayed properly, however, there
aren't any plus signs next to them to view any children.
What is the recommended way to get the plus sign to display by default.
I've tried calling updateChildCount from updateElement, but that results in
updateElement getting called for the children, which negates the benefit of
using the virtual tree with lazy loading.
|
|
|
Re: Virtual Tree and Lazy Tree Content Provider [message #310494 is a reply to message #310334] |
Tue, 05 December 2006 17:59 |
Eclipse User |
|
|
|
Originally posted by: bokowski.ca.ibm.com
In updateElement(), make sure that you set the text/icon as well as the
child count for the new element. One way of doing that is to call your
updateChildCount implementation with the new element after having called
viewer.replace.
This should not materialize the whole tree. If it does, it's a bug and
should be entered into bugzilla.
Thanks,
Boris.
"Shawn L. Pecze" <pecze@us.NO_SPAM.ibm.com> wrote in message
news:eki4uj$c6d$1@utils.eclipse.org...
>I saw an earlier post asking a similar question, but I didn't see a good
>answer for this.
>
> I have a tree viewer that I've defined as Virtual.
>
> The content provider implements ILazyTreeContentProvider. When the tree
> is displayed, the top level elements are displayed properly, however,
> there aren't any plus signs next to them to view any children.
>
> What is the recommended way to get the plus sign to display by default.
> I've tried calling updateChildCount from updateElement, but that results
> in updateElement getting called for the children, which negates the
> benefit of using the virtual tree with lazy loading.
>
|
|
|
Powered by
FUDForum. Page generated in 0.03665 seconds