Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Refreshing the Properties view
Refreshing the Properties view [message #124127] Wed, 24 March 2004 18:16 Go to next message
Jose M Beleta is currently offline Jose M BeletaFriend
Messages: 70
Registered: July 2009
Member
Is there any simple way to refresh the Properties view from EditPart's
models that implement IPropertySource when some property in the model
changes. The Properties views is refreshed when the selection changes and
when some property is changed as a result of executing a command. But I am
changing the property value using another mechanism and want to notify the
Properties view that it has to reread the IPropertySource.

Thank you in advance.

Jose M beleta
Re: Refreshing the Properties view [message #186089 is a reply to message #124127] Fri, 01 July 2005 14:16 Go to previous message
Eclipse UserFriend
Originally posted by: marlu942.student.liu.se

Hi!

This is an old question, but the answer was quite relevant for me.

Prerequesite: You already have an object selected and properties for
that object is shown in the propertyview.

Question: If I modify the value that one of the properties show, how can
I refresh the propertyView to show the new value?

Answer: let an EditPart that implement PropertyChangeListener run

getViewer().setSelection(getViewer().getSelection()); `

This will trigger an reread of the currently showing properties.

Regards,
Marcus Ludvigson



Jose M Beleta wrote:

> Is there any simple way to refresh the Properties view from EditPart's
> models that implement IPropertySource when some property in the model
> changes. The Properties views is refreshed when the selection changes and
> when some property is changed as a result of executing a command. But I am
> changing the property value using another mechanism and want to notify the
> Properties view that it has to reread the IPropertySource.
>
> Thank you in advance.
>
> Jose M beleta
>
>
Previous Topic:Path Problem!!!!
Next Topic:AbstractEditPart>>refreshChildren bug?
Goto Forum:
  


Current Time: Tue Dec 10 15:07:09 GMT 2024

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

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

Back to the top