Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Laying out Graphs!
Laying out Graphs! [message #184375] Mon, 13 June 2005 10:14 Go to next message
Eclipse UserFriend
Originally posted by: timo.glaesser.gmx.net

Hey, I got a problem with laying out graphs in GEF. It seems that in my
DataFlowEditPart (ConnectionEditPart) the source is filled yet the
target is always null. Is that filled from my model-element "DataFlow"
which contains source and target automatically or do I have to implement
any special method? Anyone able to help?

Timo&*
Re: Laying out Graphs! [message #184398 is a reply to message #184375] Mon, 13 June 2005 12:24 Go to previous messageGo to next message
Steve Jones is currently offline Steve JonesFriend
Messages: 95
Registered: July 2009
Member
Timo Mika Gläßer wrote:

> Hey, I got a problem with laying out graphs in GEF. It seems that in my
> DataFlowEditPart (ConnectionEditPart) the source is filled yet the
> target is always null. Is that filled from my model-element "DataFlow"
> which contains source and target automatically or do I have to implement
> any special method? Anyone able to help?
>
> Timo&*

Not sure if it helps but:

I had problems with getTargetAnchor() returning null when called it as part
of my ConnectionEditPart#refreshVisuals() processing.

I now test the values returned by both getSourceAnchor() and
getTargetAnchor() and just skip further connection processing if either of
them return null. I looks like a transient situation as a short time later
the tatget anchor is set correctly and my refreshVisuals() proceeds
correctly.

Steve.
Re: Laying out Graphs! [message #184441 is a reply to message #184398] Mon, 13 June 2005 16:58 Go to previous message
Eclipse UserFriend
Originally posted by: timo.glaesser.gmx.net

Sorry, but that didn't help much... is just that my target in the
connectionpart remains null. I don't know why. Thx a lot though!

Timo&*


Steve Jones wrote:
> Timo Mika Gläßer wrote:
>
>>Hey, I got a problem with laying out graphs in GEF. It seems that in my
>>DataFlowEditPart (ConnectionEditPart) the source is filled yet the
>>target is always null. Is that filled from my model-element "DataFlow"
>>which contains source and target automatically or do I have to implement
>>any special method? Anyone able to help?
>>
>>Timo&*
>
> Not sure if it helps but:
>
> I had problems with getTargetAnchor() returning null when called it as part
> of my ConnectionEditPart#refreshVisuals() processing.
>
> I now test the values returned by both getSourceAnchor() and
> getTargetAnchor() and just skip further connection processing if either of
> them return null. I looks like a transient situation as a short time later
> the tatget anchor is set correctly and my refreshVisuals() proceeds
> correctly.
>
> Steve.
>
Previous Topic:Problems with GridLayout
Next Topic:Is the PaletteViewer portable?
Goto Forum:
  


Current Time: Thu Dec 12 18:17:12 GMT 2024

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

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

Back to the top