Skip to main content


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 16:02
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
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


---
Get professional support from the Xtext committers at www.typefox.io
Previous Topic:how to implement validation in Import wizard
Next Topic:Remove Default view Icon
Goto Forum:
  


Current Time: Thu Apr 25 15:13:45 GMT 2024

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

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

Back to the top