Laying out Graphs! [message #184375] |
Mon, 13 June 2005 10:14 |
Eclipse User |
|
|
|
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 #184441 is a reply to message #184398] |
Mon, 13 June 2005 16:58 |
Eclipse User |
|
|
|
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.
>
|
|
|
Powered by
FUDForum. Page generated in 0.03421 seconds