Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » A (hopefully) simple question. Removing connections and decorations.
A (hopefully) simple question. Removing connections and decorations. [message #189180] Tue, 26 July 2005 14:40 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Moving a Figure, Resizing Its Parent
Next Topic:Scroll Bars on Viewer problem
Goto Forum:
  


Current Time: Tue Dec 03 05:44:05 GMT 2024

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

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

Back to the top