A (hopefully) simple question. Removing connections and decorations. [message #189180] |
Tue, 26 July 2005 14:40 |
Eclipse User |
|
|
|
Originally posted by: jjesselli.harmonia.com
Ahoy.
I've written a little routine that adds PolylineConnections between
editPart figures on the feedback layer. I've attached an
ancestorListener to the source figure so that when it moves, the
connections can be redrawn in a logical fashion. Now, when I call
removeAllPoints() on the connection, it works as expected. The line
itself disappears but the label and decoration on the line remain. If I
then call removeAll() on the line (to rid the children), the label and
decoration disappear but the line returns. In fact, if I change the
location of the line, and then remove the children, it appears back
where it USED to be! I can't figure out exactly what's happening here.
Does this sound like a familiar problem to anyone? Help appreciated.
Cheers,
-- JJ
|
|
|
(Problem Solved, please Ignore) [message #189211 is a reply to message #189180] |
Tue, 26 July 2005 15:43 |
Eclipse User |
|
|
|
Originally posted by: jjesselli.harmonia.com
Justin Jesselli wrote:
> Ahoy.
>
> I've written a little routine that adds PolylineConnections between
> editPart figures on the feedback layer. I've attached an
> ancestorListener to the source figure so that when it moves, the
> connections can be redrawn in a logical fashion. Now, when I call
> removeAllPoints() on the connection, it works as expected. The line
> itself disappears but the label and decoration on the line remain. If I
> then call removeAll() on the line (to rid the children), the label and
> decoration disappear but the line returns. In fact, if I change the
> location of the line, and then remove the children, it appears back
> where it USED to be! I can't figure out exactly what's happening here.
> Does this sound like a familiar problem to anyone? Help appreciated.
>
> Cheers,
>
> -- JJ
SOLVED - Was setting the the start point instead of the source anchor.
Sorry.
|
|
|
Powered by
FUDForum. Page generated in 0.03231 seconds