Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Connection problem ...
Connection problem ... [message #202951] Tue, 15 November 2005 15:37 Go to next message
Carmelo  is currently offline Carmelo Friend
Messages: 224
Registered: July 2009
Senior Member
Hi all,

Hope someone can help with my problem



I have the following situation in my application:

Two steps A and B

- A is connected to B

- B can be connected to A as well



[ B1 ] <--------------> [ B2]



When at run time I connect the two nodes what I get is two lines that stands
one on the top of the other...



I have used bend point so once the line has been painted I can move/create a
bend point in one line and make them both visible.



Is there something that can help me to avoid this?



I would like to have still the possibility to use bend point but would be
nice if the connection line would avoid to lay (or even cross) another
connection.



Thanks to all

Kar
Re: Connection problem ... [message #203000 is a reply to message #202951] Tue, 15 November 2005 22:27 Go to previous messageGo to next message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
Are there also 2 connections in your model or do they only appear as
EditParts?

"KarSc" <carmeloscala@hotmail.com> wrote in message
news:dlcvci$iqv$1@news.eclipse.org...
> Hi all,
>
> Hope someone can help with my problem
>
>
>
> I have the following situation in my application:
>
> Two steps A and B
>
> - A is connected to B
>
> - B can be connected to A as well
>
>
>
> [ B1 ] <--------------> [ B2]
>
>
>
> When at run time I connect the two nodes what I get is two lines that
> stands one on the top of the other...
>
>
>
> I have used bend point so once the line has been painted I can move/create
> a bend point in one line and make them both visible.
>
>
>
> Is there something that can help me to avoid this?
>
>
>
> I would like to have still the possibility to use bend point but would be
> nice if the connection line would avoid to lay (or even cross) another
> connection.
>
>
>
> Thanks to all
>
> Kar
>
>
>
Re: Connection problem ... [message #203017 is a reply to message #202951] Wed, 16 November 2005 09:15 Go to previous message
Eclipse UserFriend
Originally posted by: ingo.koch[nospam].sap.com

"KarSc" <carmeloscala@hotmail.com> wrote in message
news:dlcvci$iqv$1@news.eclipse.org...
> When at run time I connect the two nodes what I get is two lines that
stands
> one on the top of the other...

When this is the intended behaviour, use a fan router as the primary router:
so in your "root"-editpart :

protected void refreshVisuals()
{
ConnectionLayer cLayer = (ConnectionLayer)
getLayer(CONNECTION_LAYER);
AutomaticRouter router = new FanRouter();
router.setNextRouter(new BendpointConnectionRouter());
cLayer.setConnectionRouter(router);
}


>
> I would like to have still the possibility to use bend point but would be
> nice if the connection line would avoid to lay (or even cross) another
> connection.
>
That
Previous Topic:Move with keys
Next Topic:Building palette as tree
Goto Forum:
  


Current Time: Thu Dec 26 20:13:37 GMT 2024

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

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

Back to the top