Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » who can i catch an addRequest on a Connection?
who can i catch an addRequest on a Connection? [message #199204] Fri, 14 October 2005 08:23 Go to next message
Eclipse UserFriend
Originally posted by: philipp_sessner.yahoo.de

hi, does anyone know how i can catch an AddRequest on a Connection?

I want to move an Figure on Connection and want to add it to the parent
of the source/target of the Connection. i want to split the connection
and create an new connection between the source and the new element and
between the new element and the target. I tried to install an
containerEditPolicy on the connection, but i can only catch an
selectionRequest.

Thanks
Re: who can i catch an addRequest on a Connection? [message #199302 is a reply to message #199204] Fri, 14 October 2005 14:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

The DragEditPartsTracker adds the connection layer to the exclusion set.

This was done at a time when targeting of figures was not as robust as it is
now. It could probably be removed, but that could result in performance
decrease as every connection would get tested for intersection. Apparently
this scenario isn't too common.

So, for now you can override/extend getExclusionSet, and make sure the
connection layer is not included.

"Philipp Se
Re: who can i catch an addRequest on a Connection? [message #199389 is a reply to message #199302] Fri, 14 October 2005 15:45 Go to previous message
Eclipse UserFriend
Originally posted by: philipp_sessner.yahoo.de

thanks a lot!!!! i get the AddRequest now - i´m not sure if i really
know what i did, but it is working.

Philipp

Randy Hudson schrieb:
> The DragEditPartsTracker adds the connection layer to the exclusion set.
>
> This was done at a time when targeting of figures was not as robust as it is
> now. It could probably be removed, but that could result in performance
> decrease as every connection would get tested for intersection. Apparently
> this scenario isn't too common.
>
> So, for now you can override/extend getExclusionSet, and make sure the
> connection layer is not included.
>
> "Philipp Seßner" <philipp_sessner@yahoo.de> wrote in message
> news:dinptq$fe3$1@news.eclipse.org...
>
>>hi, does anyone know how i can catch an AddRequest on a Connection?
>>
>>I want to move an Figure on Connection and want to add it to the parent of
>>the source/target of the Connection. i want to split the connection and
>>create an new connection between the source and the new element and
>>between the new element and the target. I tried to install an
>>containerEditPolicy on the connection, but i can only catch an
>>selectionRequest.
>>
>>Thanks
>
>
>
Previous Topic:replacing editpart figure
Next Topic:Display error (in BIRT also)
Goto Forum:
  


Current Time: Sat Apr 27 02:37:39 GMT 2024

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

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

Back to the top