Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Disable Double Click on RCP Toolbar Items
Disable Double Click on RCP Toolbar Items [message #1738531] Wed, 20 July 2016 15:10
Anton Stepan is currently offline Anton StepanFriend
Messages: 1
Registered: July 2016
Junior Member

we have an E4 rcp application which creates views with a toolbar and toolbar items via the application model processor. (PartDescriptorBuilder / ToolBarBuilder / CommandHandlerBuilder)

Now we have lots of views with lots of (different) toolbar items with lots of (different) command handlers.

Lately a couple of our customers run into the following problem: they do a double click on the toolbar items, which will fire the command twice and will execute the handler twice.

We want to disable this in our application, but can't find an appropriate mechanism to do so.

(Our current "hacky" solution is to set a 'lock' in the beginning of the @Execute method of our handler, and release it an the end. In our @canExecute we check that lock.)

How to reproduce:
- Open Eclipse
- Execute any junit test
- Open the JUnit View
- Double click the 'Rerun Test' toolbar item
=> the test is executed twice

Any help appreciated, Cheers
Previous Topic:PyDev perspective don't appear in RCP
Next Topic:Visibility of toolbar items in Eclipse 4 model
Goto Forum:

Current Time: Fri Aug 19 15:25:01 GMT 2022

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

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

Back to the top