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: 757
Registered: July 2009
Location: Hamburg
Senior Member

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
pressing F5.

Bug 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

Need professional support for Eclipse Modeling?
Go visit:

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

Current Time: Sun May 27 13:35:53 GMT 2018

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

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

Back to the top