Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Disable double click in palette
Disable double click in palette [message #645280] Thu, 16 December 2010 07:42 Go to next message
Patrick P. is currently offline Patrick P.
Messages: 2
Registered: December 2010
Junior Member
I have an Eclipse RCP application with a canvas and a palette full of items. The user can click on any item in the palette to select it and then drop it anywhere on the canvas.

If the user double clicks an item, it gets immediately dropped on the canvas in the upper left corner. Is there a way to disable the double click in the palette?
Re: Disable double click in palette [message #645490 is a reply to message #645280] Fri, 17 December 2010 07:52 Go to previous message
Patrick P. is currently offline Patrick P.
Messages: 2
Registered: December 2010
Junior Member
In case someone comes across the same issue, here is my solution:

We are using a subclass of DiagramEditorWithFlyOutPalette which actually creates the mouseListener. By overriding the method toolSupportsAccesibility() to always return false, the double click action will not be called.
Previous Topic:Command placement in Eclipse main toolbar
Next Topic:p2 updates translation
Goto Forum:
  


Current Time: Sat Aug 02 02:35:03 EDT 2014

Powered by FUDForum. Page generated in 0.08035 seconds