Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » EMF/GMF constraints - help
EMF/GMF constraints - help [message #206139] Sat, 20 September 2008 14:24
Francesco is currently offline FrancescoFriend
Messages: 1
Registered: July 2009
Junior Member
Hi,
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
level.
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 isn’t
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
proceed?
Previous Topic:Need some help
Next Topic:Figure Resize only bigger
Goto Forum:
  


Current Time: Wed Feb 24 20:48:02 GMT 2021

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

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

Back to the top