Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » show non containment reference inside the node
show non containment reference inside the node [message #220282] Sat, 28 February 2009 16:26 Go to next message
Idelman Andro is currently offline Idelman AndroFriend
Messages: 8
Registered: July 2009
Junior Member
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.
Re: show non containment reference inside the node [message #220925 is a reply to message #220282] Tue, 10 March 2009 13:39 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Idelman,

You can try modelling B as a child node of A. Currently .gmfmap editor does
not allow you to select A->B reference as a containment reference for "child
B", but you can try doing that using external editor - this constraint is
only checked in EMF properties editor..

-----------------
Alex Shatalin
Re: show non containment reference inside the node [message #226863 is a reply to message #220282] Tue, 21 April 2009 14:19 Go to previous message
Javier is currently offline JavierFriend
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.
>
>
>
>
>
>
Previous Topic:Create node by double clicking
Next Topic:FixedConnectionAnchors from logic example
Goto Forum:
  


Current Time: Fri Apr 19 10:17:16 GMT 2024

Powered by FUDForum. Page generated in 0.01671 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top