Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Containment Feature owned by Domain Meta Element
Containment Feature owned by Domain Meta Element [message #903208] Wed, 22 August 2012 09:52
Marine Mare is currently offline Marine Mare
Messages: 1
Registered: August 2012
Junior Member
Hello,

I get the famous error message while trying to validate the gmfmap:
"Containment Feature must be owned by Domain Meta Elemnt or its super type of this reference parent Node Mapping"

But the point is, that actually it is owned, so I dont really understand why it doesnt work.

The Meta-Model is following:

Root element "SB" contains "S" and "MB".
"S" contains "DE", from which my elemt of interest "CDE" inherits.
"MB" contains my element of interest "CDE" directly.

So I have two top node references: "S" and "MB".
"S" has Child Reference "CDE", and it works
But if I add Child Reference "CDE" to "MB", it produces this mistake.

I am very confused, as element "CDE" is practically contained in both "S" and "MB", with the only difference, that in "S" it is contained though inheritance element "DE".
In the Tree editor I can add my "CDE" elements both to "S" and to "MB", but not in GMF! Sad

Why it doesn't work?

Thank you very much!
Previous Topic:Notation Elements on Diagram Initalization
Next Topic:Accessing model elements from diagrams that are not opened in an editor
Goto Forum:
  


Current Time: Sat Aug 30 12:24:38 EDT 2014

Powered by FUDForum. Page generated in 0.11417 seconds