TreeViewer refresh [message #417883] |
Wed, 11 February 2004 05:09  |
Eclipse User |
|
|
|
whenever I call TreeViewer refresh method, the tree collapses.
I would like the tree to kepp the expanded nodes expanded after I
refresh, how do I do it?
|
|
|
|
|
Re: TreeViewer refresh [message #451415 is a reply to message #419101] |
Tue, 01 March 2005 08:44  |
Eclipse User |
|
|
|
Originally posted by: hoeggerand.post.ch
use the method refresh(Object TreeNode) with your node which changed...
it might be faster and updates only the changed part of the tree.
hope it helps
Omry Yadan schrieb:
> I will, but I dont like it very much.
> what I would like is the tree not changing state after a refresh.
> like eclipse, when I add a class, for example.
> any idea how to achieve it?
>
>
> Alex Zhurakousky wrote:
>
>> TreeViewer has a method
>> expandAllpublic void expandAll()Expands all nodes of the viewer's tree,
>> starting with the root. This method is equivalent to
>> expandToLevel(ALL_LEVELS). After refresh, call it. Works for me
>>
>> Regards
>>
>> Alex Zhurakousky
>>
>> "Omry Yadan" <omry@telmap.com> wrote in message
>> news:c0cun2$s78$2@eclipse.org...
>>
>>> whenever I call TreeViewer refresh method, the tree collapses.
>>> I would like the tree to kepp the expanded nodes expanded after I
>>> refresh, how do I do it?
>>>
>>
>>
>>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04735 seconds