|Re: Model change validation [message #1696451 is a reply to message #1695779]
||Tue, 26 May 2015 14:20
| Esteban Dugueperoux
Registered: July 2009
If you want to react to model changes to do other model changes, you can
use a precommit listener  and if the changes doesn't comply to your
validation rules you can throw a RollbackException to have changes undone.
Le 19/05/2015 15:08, Bernhard Edler a écrit :
> I am using Sirius with an Xtext DSL. In the event of changes to the semantic model, I need to be able to manually validate the change and, if necessary add my own subsequent changes to the model.
> E.g. if the datatype of an attribute in my class diagram is set or changed (see attached picture), I need to make sure the containing package is aware of the datatype or, if not, manually imports it.
> How can I access these changes programmatically and perform my validations/additions?
Esteban Dugueperoux - Obeo
Need professional services for Sirius?
Powered by FUDForum
. Page generated in 0.01733 seconds