ECore diagram reference creation [message #717630] |
Sun, 21 August 2011 15:57  |
Eclipse User |
|
|
|
Hi,
My goal is to be able to create an editor, where I can create an instance of Item and as its child create another Item as an instance of the same very same class (ie. Father - Son relation: both Son and Father are instances of the same class - Man and i need to connect them using, lets say, hasSon relation). So in the ecore model i need to create a reference to the same class. But whenever i do create such refenrece in the ecore diagram and set the container property to true (so i can model it using emf editor), then after reloading the .genmodel it throws the following error:
A containment reference of a type with a container feature xxx that requires instances to be contained elsewhere cannot be populated.
Any idea how to workout this "self reference" relation?
Thanks in advance
Jan
[Updated on: Sun, 21 August 2011 15:58] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 1.19899 seconds