Skip to main content


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 12:42 Go to next message
Patrick P. is currently offline Patrick P.Friend
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 12:52 Go to previous message
Patrick P. is currently offline Patrick P.Friend
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: Thu Apr 25 10:30:24 GMT 2024

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

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

Back to the top