Implicitly Connecting Nodes [message #957948] |
Thu, 25 October 2012 16:20  |
Eclipse User |
|
|
|
Hi All,
I am rather new to the whole GMF development, but have hit a rather strange problem. I would like to connect Nodes directly without a connection between them.
For example, I have in my ecore file: Node A and Node B, and a relationship that Node A "has" Node B. Now usually, you would expect this to get translated to two different Nodes in GMF with the "has" being a connection. I was wondering if it is possible to implicitly create this connection. So if I draw a Node A, I would then like to be able to drag a Node B on top of this Node and for the, to glue together at a given point. Some how this would involve implicitly creating the "has" connection without drawing it. Is this possible?
I have thought that it may be possible with a compartment which contains a Node A and a very small line which represent the connection and is created when a Node A is dropped on the canvas. Then the Node B can be connected to this small line.
I know this sounds very odd! But is anything like this possible?
Thanks in advance!
Phil
|
|
|
|
Re: Implicitly Connecting Nodes [message #962950 is a reply to message #957948] |
Mon, 29 October 2012 13:01   |
Eclipse User |
|
|
|
Hi Ralph,
Yes that could be a solution! Thanks 
Also, sorry I missed it in the tips section.
Do you know if this has now been included as a possibility in the GMF Tooling?
Thanks again,
Phil
|
|
|
|
|
Re: Implicitly Connecting Nodes [message #981351 is a reply to message #957948] |
Mon, 12 November 2012 10:51   |
Eclipse User |
|
|
|
Hi All,
I have been fighting with the code changes for last week or so, and have to say, I think I am completely out of my depth!
One small question I have is does anyone have a simpler example, or if I posted my model would someone be willing to help me get through 
Thanks is advance for any help.
Phil
|
|
|
|
Powered by
FUDForum. Page generated in 0.28310 seconds