child referencing also a top node [message #196597] |
Fri, 11 July 2008 09:54 |
Eclipse User |
|
|
|
Originally posted by: paolo.paolo.it
hi, I have my editor with a set of top nodes. Then I need one of this
nodes to be contained (if one wishes so) in another of those nodes. I do
all the compartments, the nodes, the diagram labels stuff but I get a
validation error telling me that 'Containment Feature' must be owned by
'Domain Meta Element' or its super type of this reference parent Node
Mapping.
to make an example, I have two top nodes with their creation tools like an
html editor, for instance, so "creation tool DIV" and "creation tool IMG",
an img tag can be placed also alone, but into a div too... so first I had
this working mapping:
+ top node DIV ...
+ top node IMG ...
then I added a new node, diagram label, a new compartment mapping for the
img into a div, and added this:
+ top node DIV ...
--->child reference IMGintoDIV ...
+ top node IMG ...
but then I get the error, and it seems all ok to me. If I remove the IMG
top node reference I can place how many references of IMG wherever I want,
but having both a topnode and its copy as a child seems not to work
easily. I have got another model specialized in another way (with
superclasses since many properties are shared by the most of the widgets)
but here I don't want to use superclasses references because I would need
a different superclass for each widget. How can I workaround this?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04367 seconds