|
Re: Refreshing the Properties view [message #186089 is a reply to message #124127] |
Fri, 01 July 2005 14:16 |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.06487 seconds