Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Virtual tree viewer does not redraw after setInput() is called
Virtual tree viewer does not redraw after setInput() is called [message #556526] Wed, 01 September 2010 12:02
Jan Koehnlein is currently offline Jan Koehnlein
Messages: 656
Registered: July 2009
Senior Member
Hi,

I am using a virtual TreeViewer with an ILazyTreeContentProvider in a
view. Everytime I call setInput() to set a new root element, the tree is
deleted and the entire view widget stays blank.

The tree is not redrawn unless I switch windows or hit F5. No
refresh/update/setChildCount method neither on the TreeViewer nor on its
Tree shows any effect. So I am stuck without any workaround.

I could even reproduce this behavior when I am using the code from JFace
Snippet Snippet047VirtualLazyTreeViewer in a regular view. I have
uploaded this on dropio:
http://drop.io/virtualtree/asset/virtualtreebug-zip
In the example I reset the input after 10 seconds and then every 3
seconds, so you can easily see the tree disappearing and reappearing on
pressing F5.

Bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=156537 describes a
similar problem but was closed 4 years ago. BTW I am using a current
Eclipse Helios.

Am I missing something?

Thanks in advance
Jan




--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Previous Topic:how to implement validation in Import wizard
Next Topic:Remove Default view Icon
Goto Forum:
  


Current Time: Sat Aug 30 02:24:22 EDT 2014

Powered by FUDForum. Page generated in 0.04953 seconds