Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Interacting With A Connection
Interacting With A Connection [message #654975] Thu, 17 February 2011 15:36 Go to next message
Rhett Hudson is currently offline Rhett Hudson
Messages: 43
Registered: September 2010
Member
I would like to support connections that branch or fanout to multiple destinations. I read an earlier post that explored this and it came to the conclusion that the framework does not support connections that do this directly.

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?
Re: Interacting With A Connection [message #655065 is a reply to message #654975] Fri, 18 February 2011 03:47 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1527
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Right, connections on connections are currently not supported. You might be
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
Re: Interacting With A Connection [message #655247 is a reply to message #655065] Fri, 18 February 2011 14:25 Go to previous messageGo to next message
Rhett Hudson is currently offline Rhett Hudson
Messages: 43
Registered: September 2010
Member
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!
Re: Interacting With A Connection [message #655462 is a reply to message #655247] Mon, 21 February 2011 04:37 Go to previous message
Michael Wenz is currently offline Michael Wenz
Messages: 1527
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Thanks for this clarification. Now I understood this drag&drop operation.
We'll let this idea flow into the current thoughts about how to support
connections on connections.

Thanks,
Michael


"Rhett Hudson" wrote in message news:ijmgnf$5kj$1@news.eclipse.org...

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!
Previous Topic:Might be able to sponsor a developer to make an open source graphiti app
Next Topic:Send to Front or Back
Goto Forum:
  


Current Time: Fri Apr 18 01:41:12 EDT 2014

Powered by FUDForum. Page generated in 0.01764 seconds