|Re: EMF with BeanSupport? [message #902720 is a reply to message #902716]
||Mon, 20 August 2012 06:49
| Ed Merks
Registered: July 2009
On 20/08/2012 7:39 AM, Ludwig Moser wrote:
> let me explain it by a small example
> we have ECLasses Person & Address
> where Person has Attributes name, adress (an EReference to EClass
> Address), etc
> where Address has Attributes street, city, country
> get an notification from an instance of Eclass Person
> and i need to access the attribute street of this person...
For the purpose of producing a bean notification. I would have imagined
that only the Address bean produces notifications for changes to the
street, which is a property of Address not a property of Person.
> i usualy do this with an FeaturePath
> by using this featurePath i could create the String (which java beans
> uses to resolve the getter&setter)
> btw: the string would be: address.street (which gets resolved to
> how can i do this with only one structuralfeature from the notification?
Person will only get notifications for changes to its own features.
> i hope you understand now what i need, or what my problem is.
No, I just have more questions. Isn't it the case that beans produce
notifications only for changes to their own properties? After all, the
Address bean doesn't know which Person bean refers to it; it might even
be shared among many persons (and you've not mentioned whether it's a
containment reference, which would imply it's only referenced by one
> thanks for your patience :)
Powered by FUDForum
. Page generated in 0.07364 seconds