Virtual tree viewer does not redraw after setInput() is called [message #556526] |
Wed, 01 September 2010 16:02 |
Jan Koehnlein 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
|
|
|
Powered by
FUDForum. Page generated in 0.04197 seconds