Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forums[Zest] Different Connections
https://www.eclipse.org/forums/index.php/mv/msg/457937/1016434/#msg_1016434
I'm trying to use zest to display 5 different types of connections on one graph.
Out of the box Zest allows all but (ii - linked) or perhaps I have overlooked it.
My question is what would be the best approach to achieve this connection? In theory it is one connection with 2 start points, 1 end point?
I guess I need to implement IConnectionStyleProvider and modify the getRouter() method but this doesn't seem right, as there would already be 2 connections at this point instead of one?
Thanks in advance,
Alan]]>Alan Sergeant2013-03-06T12:58:14-00:00Re: [Zest] Different Connections
https://www.eclipse.org/forums/index.php/mv/msg/457937/1016703/#msg_1016703
Type 2 is exactly what I would like to achieve for my diagram editor. As far as I have researched on the forums this is not supported by the GMF infrastructure. So there are two solutions.
You've mentioned the first one, i.e. to create two connections and reroute them as if they are forked. The disadvantage is that you still have two different connections semantically.
The second is to create an intermediate node at the splitting point, which would represent the single connection on the domain level. This is what I'm doing at the moment. But it makes the user experience less fluid, having to draw a node and two connection to it instead of a single connection. Thankfully there's some hint on how to draw an intermediate node automatically in GMF Tips.
Cheers,
Vitaly]]>Vitaly Savickas2013-03-07T12:27:41-00:00Re: [Zest] Different Connections
https://www.eclipse.org/forums/index.php/mv/msg/457937/1017006/#msg_1017006
I'm thinking though that the only issue to creating the overlapping connections is writing the logic in the background to handle selection of connection.
If the user selects one connection, two should actually be selected.
]]>Alan Sergeant2013-03-08T14:45:10-00:00Re: [Zest] Different Connections
https://www.eclipse.org/forums/index.php/mv/msg/457937/1017113/#msg_1017113
I believe other developers including myself would very much appreciate if you could post a solution as you implement this feature;)