Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow/when to show popup menu on connection creation?
https://www.eclipse.org/forums/index.php/mv/msg/200080/638491/#msg_638491
When the user is using a connection tool and then clicks on the target
figure to complete the connection I would like to intercept this to
display a pop-up menu so the user can choose an option. Where to
intercept the mouse-down event?
Regards,
PB]]>h10550712010-11-11T12:59:23-00:00Re: How/when to show popup menu on connection creation?
https://www.eclipse.org/forums/index.php/mv/msg/200080/638493/#msg_638493
Devi Vara Prasad Bandaru2010-11-11T13:49:14-00:00Re: How/when to show popup menu on connection creation?
https://www.eclipse.org/forums/index.php/mv/msg/200080/638503/#msg_638503
> org.eclipse.gef.editpolicies.GraphicalNodeEditPolicy.getConn
> ectionCompleteCommand(CreateConnectionRequest)
Hi, no this won't work because this is called also when the mouse is
hovering over target figures. I need it to activate on a mouse down
event which is called from
AbstractConnectionCreationTool.handleCreateConnection()
PB]]>h10550712010-11-11T14:07:06-00:00Re: How/when to show popup menu on connection creation?
https://www.eclipse.org/forums/index.php/mv/msg/200080/638513/#msg_638513
]]>Devi Vara Prasad Bandaru2010-11-11T14:42:42-00:00Re: How/when to show popup menu on connection creation?
https://www.eclipse.org/forums/index.php/mv/msg/200080/638584/#msg_638584
> What about using a custom creation tool which extends the default
> org.eclipse.gef.tools.ConnectionCreationTool?
>
>
Thanks, yes, this is what I am doing now. It seems to be working so far.