How to resolve opposite end of an UML Extension ? [message #476264] |
Wed, 03 October 2007 18:02  |
Eclipse User |
|
|
|
Hi,
I'm using a ResourceSetListener to react on postcommit changes to my
editing domain (containing UML models).
Now I want to react on a Stereotype application to model elements, but
all I get in
ResourceSetChangeEvent#getTransaction().getChangeDescription () is a
DynamicEObjectImpl which references the EClass of the Stereotype
definition - which makes sense for the UML extension mechanism.
My Problem now is: How do I process this DynamicEObject and how do I get
access to the opposite end of the extension (e.g. the UML element the
stereotype was actually applied to) ?
Or should there be more information elsewhere (e.g. searching through
all the Notifications) ?
Thanks for any hints,
kind regards,
Florian
|
|
|
Re: How to resolve opposite end of an UML Extension ? [message #476266 is a reply to message #476264] |
Thu, 04 October 2007 10:06  |
Eclipse User |
|
|
|
Hi Florian,
There are several helpers you can find in UMLUtil.
Have a look at UMLUtil.getBaseElement() and UMLUtil.getStereotype().
Pass the stereotype application that you have your hands on and you will get
back the items you are looking for.
Cheers,
- James.
"Florian Georg" <florian.georg@ch.ibm.com> wrote in message
news:fe13do$bqj$1@build.eclipse.org...
> Hi,
>
> I'm using a ResourceSetListener to react on postcommit changes to my
> editing domain (containing UML models).
>
> Now I want to react on a Stereotype application to model elements, but
> all I get in
> ResourceSetChangeEvent#getTransaction().getChangeDescription () is a
> DynamicEObjectImpl which references the EClass of the Stereotype
> definition - which makes sense for the UML extension mechanism.
>
> My Problem now is: How do I process this DynamicEObject and how do I get
> access to the opposite end of the extension (e.g. the UML element the
> stereotype was actually applied to) ?
> Or should there be more information elsewhere (e.g. searching through
> all the Notifications) ?
>
>
>
> Thanks for any hints,
> kind regards,
> Florian
|
|
|
Re: How to resolve opposite end of an UML Extension ? [message #625079 is a reply to message #476264] |
Thu, 04 October 2007 10:06  |
Eclipse User |
|
|
|
Hi Florian,
There are several helpers you can find in UMLUtil.
Have a look at UMLUtil.getBaseElement() and UMLUtil.getStereotype().
Pass the stereotype application that you have your hands on and you will get
back the items you are looking for.
Cheers,
- James.
"Florian Georg" <florian.georg@ch.ibm.com> wrote in message
news:fe13do$bqj$1@build.eclipse.org...
> Hi,
>
> I'm using a ResourceSetListener to react on postcommit changes to my
> editing domain (containing UML models).
>
> Now I want to react on a Stereotype application to model elements, but
> all I get in
> ResourceSetChangeEvent#getTransaction().getChangeDescription () is a
> DynamicEObjectImpl which references the EClass of the Stereotype
> definition - which makes sense for the UML extension mechanism.
>
> My Problem now is: How do I process this DynamicEObject and how do I get
> access to the opposite end of the extension (e.g. the UML element the
> stereotype was actually applied to) ?
> Or should there be more information elsewhere (e.g. searching through
> all the Notifications) ?
>
>
>
> Thanks for any hints,
> kind regards,
> Florian
|
|
|
Powered by
FUDForum. Page generated in 0.03859 seconds