Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Virtual Tree and Lazy Tree Content Provider
Virtual Tree and Lazy Tree Content Provider [message #310334] Tue, 28 November 2006 20:07 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
>
Previous Topic:[Databinding] updateTargets() appends model list to target list
Next Topic:Refactoring to take place on 'org.eclipse.ui.menus' Extension Point schema
Goto Forum:
  


Current Time: Fri Dec 27 11:05:19 GMT 2024

Powered by FUDForum. Page generated in 0.04426 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top