|Disable Double Click on RCP Toolbar Items [message #1738531]
||Wed, 20 July 2016 15:10
| Anton Stepan
Registered: July 2016
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
Powered by FUDForum
. Page generated in 0.02188 seconds