|
|
Re: show non containment reference inside the node [message #226863 is a reply to message #220282] |
Tue, 21 April 2009 14:19 |
Javier Messages: 57 Registered: July 2009 |
Member |
|
|
I had a similar problem, and this link might be useful for you:
http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg17573.html
I gues that although A doesn't contain B, B elements have to be
contained somewhere. So u should have your B elements in any place, and
when u want one of them to show up inside A, you have to add the element
to the EList of B's that u should have in A. Working in the diagram, the
easiest way to do that is using the Propierties sheet control that you
will see when you select A, and it will let you add B references.
Placement of new objects inside A will be uncontrolled at first, so you
need to get into the creation process and adjust the coordinates if you
are using an XY layout.
Idelman Andro escribió:
> Hi,
> let say I have class A with a reference to class B (not contained in A).
> class B contain a list of class C, and
> class A contain a list of class D.
> each class D have a reference to a class C (that have to be inside B
> referred in the A that contain the it).
> I want make it look like the B is inside A.
> in case one B is be referred by several A's, then the figure of B should
> be inside each one of the A's.
> something like this -
>
> |-----A--------------|
> | |
> | |B--------| |
> | | | |
> | | C <--+---D |
> | | | |
> | | C <--+---D |
> | | | |
> | |---------| |
> | |
> | |
> |--------------------|
>
> anyone got an idea how this could be done?
> the main problem is to show the un-contained B inside A.
> I've read many threads about non containment feature, but yet was unable
> to solve this problem.
>
>
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03667 seconds