Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsImplicitly Connecting Nodes
https://www.eclipse.org/forums/index.php/mv/msg/415066/957948/#msg_957948
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?
Ralph]]>Ralph Gerbig2012-10-29T10:25:37-00:00Re: Implicitly Connecting Nodes
https://www.eclipse.org/forums/index.php/mv/msg/415066/962950/#msg_962950
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]]>Phillip James2012-10-29T13:01:12-00:00Re: Implicitly Connecting Nodes
https://www.eclipse.org/forums/index.php/mv/msg/415066/962960/#msg_962960
no it has not been included but there is an open bug on this item. You should express your interest there and follow it to get informed: https://bugs.eclipse.org/bugs/show_bug.cgi?id=331868
Ralph]]>Ralph Gerbig2012-10-29T13:10:24-00:00Re: Implicitly Connecting Nodes
https://www.eclipse.org/forums/index.php/mv/msg/415066/962967/#msg_962967
best,
Phil]]>Phillip James2012-10-29T13:17:53-00:00Re: Implicitly Connecting Nodes
https://www.eclipse.org/forums/index.php/mv/msg/415066/981351/#msg_981351
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
Unfortunately the command contains some custom code that is used for other features of my editor. I think installing the editpolicy and doing some debugging will help you a lot.