Skip to main content



      Home
Home » Newcomers » Newcomers » Keeping the state of the Tree Viewer
Keeping the state of the Tree Viewer [message #259100] Tue, 24 June 2008 09:43 Go to next message
Eclipse UserFriend
Hi All,

I have a tree viewer.I can add and delete the model elements in the tree
at run time.After addition and deletion i am callign the refresh method of
the view.But it is collapsing the tree.How can i keep the state changing
by not collasping the tree.

Thanks and Regards,
Saurav
Re: Keeping the state of the Tree Viewer [message #259104 is a reply to message #259100] Tue, 24 June 2008 09:46 Go to previous message
Eclipse UserFriend
See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=113675

Why do you call refresh()? Can't you simply use the
TreeViewer#add/remove methods?

Tom

saurav schrieb:
> Hi All,
>
> I have a tree viewer.I can add and delete the model elements in the tree
> at run time.After addition and deletion i am callign the refresh method
> of the view.But it is collapsing the tree.How can i keep the state
> changing by not collasping the tree.
>
> Thanks and Regards,
> Saurav
>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Previous Topic:include path problem
Next Topic:How to check for a pre-installed software?
Goto Forum:
  


Current Time: Thu Jul 17 19:47:54 EDT 2025

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

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

Back to the top