Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » How to resolve opposite end of an UML Extension ?
How to resolve opposite end of an UML Extension ? [message #476264] Wed, 03 October 2007 22:02 Go to next message
Florian Georg is currently offline Florian GeorgFriend
Messages: 27
Registered: July 2009
Junior Member
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 14:06 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
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 14:06 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
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
Previous Topic:How to resolve opposite end of an UML Extension ?
Next Topic:new to UML2
Goto Forum:
  


Current Time: Thu Apr 25 21:35:26 GMT 2024

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

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

Back to the top