|
|
Re: JFace Viewer [message #336277 is a reply to message #336260] |
Thu, 04 June 2009 22:54 |
Eclipse User |
|
|
|
Originally posted by: wim.jongman.gmail.com
Hi Andy,
Alternatively you can get the current expanded nodes before setinput and
expand exactly that after setinput. Stop the tree from drawing in between and
show a nice progress dialog if it takes longer.
Best Regards,
Wim Jongman
> Andy Czerwonka wrote:
>> Is there any way I can stop my TreeViewer from completely collapsing on
>> a setInput()?
>
> I think that its not a good idea for TreeViewer to expand all when
> setting the input. It would have severe performance impact if the tree
> depth is more or if fetching of each element is time consuming.
>
> However, if you really need to do that for your app, you can call
> treeViewer.expandAll() or treeViewer.expandToLevel() methods
>
> - Prakash
> ---
> http://blog.eclipse-tips.com
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05349 seconds