|EMF/GMF constraints - help [message #206139]
||Sat, 20 September 2008 14:24
Registered: July 2009
I want you pose a question about a problem that I met in the definition of
OCL constraints for my metamodel that I created with Topcased Ecore editor
and EMF Framework.
Starting from the metamodel I have defined a custom graphical editor with
GMF and now I am trying to have OCL constraints implemented at the GMF
But as described in the GMF tutorial
http://wiki.eclipse.org/GMF_Tutorial_Part_2#Link_Constraints , it seems
that I can define only constraints for the elements of Ecore matamodel
(notation elements) that are mapped in the .gmfmap file (graphical
elements) , that is for the elements that I can define through the palette.
My problem is that I want to define an OCL constraint on the EReference
"derivedSlot" in my metamodel (see fig1.jpg in attachment) that it isnt
mapped in GMF but only defined through the properties of my editor (see
fig2.jpg in attachment), using therefore the EMF default editor.
The constraint that I want to define should allow me to select at runtime
(then without using the validate action) a subset of the "derivedSlot"
when I edit such field through the properties of the Association Center
element (see fig3.jpg in attachment).
Can I define somehow such constraint at GMF level or must I necessarily
define it at EMF level with EMF additional plug-ins? Have you had
experiences with the definition of constraints at EMF/GMF level? how can I
Powered by FUDForum
. Page generated in 0.01781 seconds