Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Connection Selection Only Half Working
Connection Selection Only Half Working [message #224165] Wed, 11 October 2006 18:17 Go to next message
Eclipse UserFriend
Originally posted by: something.eclipse.org

I have implemented my own connection class, but so far, I can't get
selection feedback on connections. It is working a little, because if I
click on a connection that is not fully in view, the viewer scrolls.
However, the feedback doesn't show up, and it seems that the editpolicy
class is never getting called. I have installed it as below except I
override addSelectionHandles and getConnectionFigure to customize the
behavior. These methods never get called. Any suggestions?

thanks,
adam

installEditPolicy(EditPolicy.CONNECTION_ENDPOINTS_ROLE,
new ConnectionEndpointEditPolicy())
Re: Connection Selection Only Half Working [message #224333 is a reply to message #224165] Fri, 13 October 2006 19:06 Go to previous message
Eclipse UserFriend
Originally posted by: something.eclipse.org

Got it working. Stupid mistake on my part - overriding activate on the
parent without calling super...

AdamC wrote:
> I have implemented my own connection class, but so far, I can't get
> selection feedback on connections. It is working a little, because if I
> click on a connection that is not fully in view, the viewer scrolls.
> However, the feedback doesn't show up, and it seems that the editpolicy
> class is never getting called. I have installed it as below except I
> override addSelectionHandles and getConnectionFigure to customize the
> behavior. These methods never get called. Any suggestions?
>
> thanks,
> adam
>
> installEditPolicy(EditPolicy.CONNECTION_ENDPOINTS_ROLE,
> new ConnectionEndpointEditPolicy())
Previous Topic:Help with Drag and drop
Next Topic:rotate a IFigure
Goto Forum:
  


Current Time: Fri Apr 26 03:09:36 GMT 2024

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

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

Back to the top