Connection Selection Only Half Working [message #224165] |
Wed, 11 October 2006 18:17 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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())
|
|
|
Powered by
FUDForum. Page generated in 12.66032 seconds