Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TreeViewer refresh
TreeViewer refresh [message #417883] Wed, 11 February 2004 10:09 Go to next message
Omry Yadan is currently offline Omry YadanFriend
Messages: 45
Registered: July 2009
Member
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 #419085 is a reply to message #417883] Sat, 14 February 2004 16:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: azhurakousky.ejblink.com

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?
>
Re: TreeViewer refresh [message #419101 is a reply to message #419085] Sun, 15 February 2004 17:38 Go to previous messageGo to next message
Omry Yadan is currently offline Omry YadanFriend
Messages: 45
Registered: July 2009
Member
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?
>>
>
>
>
Re: TreeViewer refresh [message #451415 is a reply to message #419101] Tue, 01 March 2005 13:44 Go to previous message
Eclipse UserFriend
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?
>>>
>>
>>
>>
>
Previous Topic:jumping text in tree editor
Next Topic:Which rule to use?
Goto Forum:
  


Current Time: Fri Apr 26 20:25:15 GMT 2024

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

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

Back to the top