Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » TriggerListener for changing values of Element properties from Stereotype
TriggerListener for changing values of Element properties from Stereotype [message #622581] Wed, 27 June 2007 09:44
Francis Gavino is currently offline Francis GavinoFriend
Messages: 57
Registered: July 2009
Member
Hi,

I need to create a transaction listener (E.g.
org.eclipse.emf.transaction.TriggerListener) that listens to changes in
the values of Element properties from an applied Stereotype.

For example:
A Behavior (named Foo) and a corresponding CallBehaviorAction (named
FooAction) has an applied Stereotype (named FooStereotype) which has a
Property (named fooStereotypeProperty). When the value of
fooStereotypeProperty of Foo changes, I want to do something and change
also the value of fooStereotypeProperty of FooAction (and vice-versa).

I tried to inspect the Notification but I can't find a way to have access
to the owner of the property (in this case, it's Foo). This is also an EMF
question but I'm not sure where to post it so pardon me if this should be
in the EMF thread.

Thanks,
Francis
Previous Topic:question about package merge
Next Topic:Model import and referencing
Goto Forum:
  


Current Time: Fri Apr 26 08:00:01 GMT 2024

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

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

Back to the top