Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » adding anchors to connections?
adding anchors to connections? [message #1022256] Thu, 21 March 2013 14:56 Go to next message
Annika Wießgügel is currently offline Annika WießgügelFriend
Messages: 11
Registered: January 2013
Junior Member
Hey,
i want to start a connection at the middle of another connection.
Is it possible to add anchors to a connection?

Or are there any limitations in graphiti i should now about?
Re: adding anchors to connections? [message #1022320 is a reply to message #1022256] Thu, 21 March 2013 17:07 Go to previous messageGo to next message
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 601
Registered: July 2009
Location: Trondheim, Norway
Senior Member
On 21.03.13 07.56, Annika Wießgügel wrote:
> Hey,
> i want to start a connection at the middle of another connection.
> Is it possible to add anchors to a connection?

I also need this in a feature that is supposed to create a fork where
there was only a connection. I want to have an anchor on the middle of
the connection, that can be used as a starting point for another connection.

A connection is an anchor container, so it is possible to add it.
However, I've not been able to use that anchor as the starting point for
a connection, nor make it visible.

> Or are there any limitations in graphiti i should now about?

Well, there seems to be, but I'm not sure it is intentional or just
something that's not implemented, yet. Hope to see an "official" answer
to this question.

Hallvard
Re: adding anchors to connections? [message #1022629 is a reply to message #1022320] Fri, 22 March 2013 09:02 Go to previous messageGo to next message
Felix Velasco is currently offline Felix VelascoFriend
Messages: 43
Registered: July 2009
Member
This has been available for a long time now (https://bugs.eclipse.org/bugs/show_bug.cgi?id=326396), please see the Sketch example for a working example. The relevant section is in the AbstractSketchCreateSimpleConnectionFeature#create method.

The trick is that you don't add an anchor to an existing connection, but a brand new shape in the middle of it.
Re: adding anchors to connections? [message #1024022 is a reply to message #1022629] Mon, 25 March 2013 16:51 Go to previous messageGo to next message
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 601
Registered: July 2009
Location: Trondheim, Norway
Senior Member
On 22.03.13 02.02, Felix Velasco wrote:
> This has been available for a long time now
> (https://bugs.eclipse.org/bugs/show_bug.cgi?id=326396), please see the
> Sketch example for a working example. The relevant section is in the
> AbstractSketchCreateSimpleConnectionFeature#create method.
>
> The trick is that you don't add an anchor to an existing connection, but
> a brand new shape in the middle of it.

This trick does not utilize the fact that connections are anchor
containers, which was what the question was about. But I agree that the
trick is nice. I did something similar myself, but created the
connection point using a separate double-click feature. It is better to
do it in the create connection feature, like in the example.

Hallvard
Re: adding anchors to connections? [message #1027016 is a reply to message #1024022] Tue, 26 March 2013 13:09 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1635
Registered: July 2009
Location: Walldorf, Germany
Senior Member
To answer that last open question: anchors in connections are currently not
supported by Graphiti.

Michael
Previous Topic:Beginner Question
Next Topic:Select Shapes over the SelectTool
Goto Forum:
  


Current Time: Wed Nov 26 08:59:49 GMT 2014

Powered by FUDForum. Page generated in 0.02853 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software