|Monitor/log changes made to a UML model [message #629139]
||Mon, 27 September 2010 11:00
Originally posted by: koen.yskout.cs.kuleuven.be|
To setup and perform a research experiment, I would like to monitor and
log all changes made to a UML model made by the experiment's subjects
(only changes to the .uml model, eg. not the diagram info such as
position, color etc).
My first idea would be to use the notification mechanism of EMF on the
..uml model root, and attach a logging adapter whenever an editor is opened.
Before I start implementing this, can somebody provide some insight on
whether this will work, and/or have a (better) idea on how to tackle
this and where to start? Is there maybe some part of the Papyrus
framework that provides (part of) this functionality?
|Re: Monitor/log changes made to a UML model [message #630247 is a reply to message #629139]
||Fri, 01 October 2010 10:08
| Remi Schnekenburger
Registered: July 2009
you should look to the modelListener extension point of Papyrus. It seems to fill perfectly your requirements. It listens to the modification made on the UML model. You can find some use of this extension point in the org.eclipse.papyrus.diagram.common plugin, where it appears 2 times. The first implementation is a listener that listens to the profile (un)application, a second one works with stereotypes (un)application.
The plugin defining this extension point is the org.eclipse.papyrus.core plugin, if you need further information.
Powered by FUDForum
. Page generated in 0.03706 seconds