|Implicitly Connecting Nodes [message #957948]
||Thu, 25 October 2012 12:20
| Phillip James
Registered: October 2012
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!
Powered by FUDForum
. Page generated in 0.07993 seconds