Restrict the connection for the figures when they r in container [message #178924] |
Tue, 25 March 2008 11:58  |
Eclipse User |
|
|
|
Originally posted by: govind.ashrit.xxx.com
Hi All..
In my project i have some figures (say A,B,C etc.)
According to the model n graph.
I can connect A to A(A-----A).
Now my Requirement is :::
When i drag 2 figs of type B from palette n place on editor.
then add one Fig A in both of the Figs B.
Now i want to restrict connection between fig A and Fig A ..which r now in
different containers(ie Fig B).
Help Required..
Thanks in Advance..
Regards
Govind R .
|
|
|
|
|
|
|
Re: Restrict the connection for the figures when they r in container [message #179193 is a reply to message #179177] |
Wed, 26 March 2008 10:38  |
Eclipse User |
|
|
|
Hello govind,
AFAIU, you have the following meta-model:
- EClass (name="A")
- EReference (name="myBs", containment="true", type="B")
- EClass (name="B")
I'm suggesting you to add one more reference into EClass "B":
- EReference (name="myA", type="A", eOpposite="myBs")
As a result this EReference will be set to the container of B element (A).
-----------------
Alex Shatalin
|
|
|
Powered by
FUDForum. Page generated in 0.05984 seconds