Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsInteracting With A Connection
https://www.eclipse.org/forums/index.php/mv/msg/204807/654975/#msg_654975
As an alternative, I would like the user to be able to issue a command against a connection that causes it to split into multiple connections. I have been investigating mechanisms for the user to indicate that they would like this to happen.
I have investigated drag and drop, but it appears that the reference in BoxRelativeAnchorEditPart is the only one that uses drag and drop features.
I looked at double clicking, but it appears that double clicks on connections don't make it through to the double click feature provider.
I looked at context pad buttons, but connections don't seem to get one.
That leaves me with selecting the connection and using a context menu. I can live with that, but I wanted to check to make sure it was my only option. Is that the only command-like feature that gets called with a connection in its context?]]>Rhett Hudson2011-02-17T20:36:02-00:00Re: Interacting With A Connection
https://www.eclipse.org/forums/index.php/mv/msg/204807/655065/#msg_655065
interested in the progress in Bugzilla
326396(https://bugs.eclipse.org/bugs/show_bug.cgi?id=326396). A colleague is
having a look at this for Indigo M6.
And also right, currently the solution for this would be writing a custom
feature that will be available via the context menu. Context pads are only
rendered for shapes not for connections, and double click is not routed
forward for connections (might be a useful extension, feel free to request
it...). I'm not really sure what you mean with drag&drop feature. Dropping
the endpoints of a connection is supported by default onto any shape having
an anchor of any type.
Michael]]>Michael Wenz2011-02-18T08:47:38-00:00Re: Interacting With A Connection
https://www.eclipse.org/forums/index.php/mv/msg/204807/655247/#msg_655247
Thanks for your help!]]>Rhett Hudson2011-02-18T19:25:30-00:00Re: Interacting With A Connection
https://www.eclipse.org/forums/index.php/mv/msg/204807/655462/#msg_655462
We'll let this idea flow into the current thoughts about how to support
connections on connections.
To clarify my drag comment, one standard way, in electrical CAD tools at
least, for a diagram to generate a branching connection is for the user to
drag from an existing connection in the same manner that Graphiti currently
supports creating a connection by dragging from a BoxRelativeAnchor. The
behavior would be be as if the entire connection were an anchor that
supported dragging connections. The actual reference point for the origin of
the new connection being the point on the connection where the user started
the drag.
Thanks for your help!]]>Michael Wenz2011-02-21T09:37:05-00:00