Deep containment [message #163582] |
Sat, 01 December 2007 15:37 |
Eclipse User |
|
|
|
Originally posted by: steve.orobec.bt.com
Hi
I have a metamodel that contains some deep containments (6 or 7 layers).
I am familiar with using phantom nodes and most of my nodes are managed
that way
so that the child nodes are visualised outside the parent.
However, for some special cases I would really like the visual to match
the meta-
model, eg in metamodel A contains B and B contains C which could contain D.
Is it possible somehow to create this visually such that A is a node, B is
an internal rectangle with a border (perhaps floating inside A since A
uses X-Y layout). Then C would be a node inside B etc. Would compartment
map help
(I appreciate it may look strange but it is for a special purpose)
I have tried Feature Seq Initializer but this just creates A B & C but
doesn't
actually change the visual containment (unless I'm doing something wrong)
regards
Steve
|
|
|
|
Re: Deep containment [message #164466 is a reply to message #163780] |
Wed, 05 December 2007 23:13 |
Eclipse User |
|
|
|
Originally posted by: steve.orobec.bt.com
Hi Alex
I have the mapping file sorted & everything compiles
Node A has childref B and child B has childref C
When I use the generated editor I can put a B node in A, when I try to put
C
inside B the outline of C appears to the right of B (but outside its
boundary)
then disappears but the diagram behaves as though the C node is still
there.
(cardianality is 0..1 and no more C nodes are permitted).
I guess there is some feature to set, I tried a few combinations but with
no
luck. I want to see node C drawn inside B along with the attributes of C)
regards
Steve
|
|
|
|
Re: Deep containment [message #164642 is a reply to message #164579] |
Thu, 06 December 2007 23:04 |
Eclipse User |
|
|
|
Originally posted by: steve.orobec.bt.com
Hi Alex
I have created a compartment in B, I guess the idea is somehow create C in
this
compartment, if so how would I map C into this compartment?
regards
Steve
|
|
|
Re: Deep containment [message #164650 is a reply to message #164642] |
Fri, 07 December 2007 00:42 |
Eclipse User |
|
|
|
Originally posted by: steve.orobec.bt.com
Hi Alex
Believe it or not, I have just managed this.
Not sure what I did yet as I did some updates and it worked
I'll let you know after I work it out ;-)
regards
Steve
|
|
|
Re: Deep containment [message #164682 is a reply to message #164650] |
Fri, 07 December 2007 11:11 |
Eclipse User |
|
|
|
Originally posted by: steve.orobec.bt.com
For anyone interested I did it by setting the following
In child reference
containment feature = children feature = containment link
referenced child = innermost nested node
regards
Steve
|
|
|
Powered by
FUDForum. Page generated in 0.03540 seconds