How do I get notifications on changes of resource properties [message #121847] |
Wed, 03 September 2003 07:57  |
Eclipse User |
|
|
|
Originally posted by: user.domain.invalid
Hi all,
I have a property page that is displayed for certain resources and sets a
persistent property on the resource. I also have an editor that queries this
resource property and behaves slightly differently in terms of
syntax-highlighting and auto-completion depending on the value of the property.
Now, I'd like the editor to effectively listen to changes of the property,
so that the user doesn't need to re-open the editor after changing the
property. However I couldn't find an API to accomplish this.
IResourceChangeListeners don't seem to be notified when a property is changed.
Am I missing something, or is this simply not possible? (and in case of the
latter, why not?)
-chris
|
|
|
|
|
|
|
|
|
|
Re: How do I get notifications on changes of resource properties [message #122608 is a reply to message #122205] |
Thu, 04 September 2003 06:55  |
Eclipse User |
|
|
|
Simon Arsenault wrote:
> You can also open a feature request in bugzilla against Platform - CORE.
For the record:
,----------------------------------------------------------- ----------
| "Persistent properties are intended to be used only by the plug-in
| that declares them. One plug-in should *not* get/set properties that
| belong to another plug-in. So, there is no benefit (across plugin
| boundaries) in generating events if the only interested party is
| exactly who is executing the modification."
`----------------------------------------------------------- ----------
[http://bugs.eclipse.org/bugs/show_bug.cgi?id=42461]
> Simon :-)
>
> "Christopher Lenz" <cmlenz@gmx.de> wrote in message
> news:bj50aa$n47$1@eclipse.org...
>
>>Chris Laffra wrote:
>>
>>>All you can do to track property changes on resources is to poll the
>>>resource and see if its persistent property has changed.
>>>No change listeners on this one.
>>
>>Okay, thanks. I'll just need to introduce some object through which all
>>modifications of my resource property are made, and allow attaching
>>listeners to that object. Not a big issue.
>>
>>-chris
|
|
|
Powered by
FUDForum. Page generated in 0.07222 seconds