|Virtual tree viewer does not redraw after setInput() is called [message #556526]
||Wed, 01 September 2010 16:02
| Jan Koehnlein
Registered: July 2009
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:
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
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
Am I missing something?
Thanks in advance
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.02340 seconds