Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Keeping the state of the Tree Viewer
Keeping the state of the Tree Viewer [message #259100] Tue, 24 June 2008 13:43 Go to next message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
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 13:46 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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: Sun Jun 16 17:56:02 GMT 2024

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

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

Back to the top