Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Updating Changes to a object in a TreeViewer
Updating Changes to a object in a TreeViewer [message #26704] Thu, 01 May 2003 15:19 Go to next message
Eclipse UserFriend
Originally posted by: kgc.rsssolutions.com

The setup:
I select an object from a TreeView and open an editor on it. After saving
the changes I would like for my Tree to be updated.

eg. I open an edited and change the name attribute of the object. This
attribute is what my LabelProvider uses to display the object in the Tree.

Problem:
My tree does not reflect the changes but when I re-open the editor I see the
changes.

Please Help

Kevin
Re: Updating Changes to a object in a TreeViewer [message #26741 is a reply to message #26704] Thu, 01 May 2003 15:33 Go to previous message
Eclipse UserFriend
u need to update the tree item to update its label.
use TreeViewer.refresh (tree object, true) to update the label.

Balaji

"Kevin Crocker" <kgc@rsssolutions.com> wrote in message
news:b8rrvg$dpg$1@rogue.oti.com...
> The setup:
> I select an object from a TreeView and open an editor on it. After saving
> the changes I would like for my Tree to be updated.
>
> eg. I open an edited and change the name attribute of the object. This
> attribute is what my LabelProvider uses to display the object in the Tree.
>
> Problem:
> My tree does not reflect the changes but when I re-open the editor I see
the
> changes.
>
> Please Help
>
> Kevin
>
>
Previous Topic:using an external jar
Next Topic:Showing only one editor
Goto Forum:
  


Current Time: Wed Jun 18 15:44:57 EDT 2025

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

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

Back to the top