EMF Validation via OCL [message #514792] |
Tue, 16 February 2010 11:25  |
Eclipse User |
|
|
|
Hi,
I try to add some constraints in my ecore model.
In the book "eclipse Modeling Project" there is an example at "Chapter 3.2.4"
This is what i have done:
1. changed the .genmodel:
OCL_ECORE=org.eclipse.ocl.ecore
Dynamic Templates=true
Template Directory = /emf.test/templates
2. added a annotation:
source : http://www.eclipse.org/2007/OCL
->DetailsEntry: key=derived
value=self.id<>null
I just want that the EAttribute "id" can't be null.
If i invoke the validation in my generated Editor via "right click->validate", nothing happens.
Maybe i misunderstand something.
I hope somebody can help me.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03901 seconds