Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to prevent key binding execution repetition
How to prevent key binding execution repetition [message #988643] Fri, 30 November 2012 20:15 Go to next message
Jose Renato is currently offline Jose Renato
Messages: 11
Registered: February 2011
Junior Member
I need to prevent my application to perform the same action over and over again when that action is associated with a key biding, while the user is holding the trigger sequence.

I need to emulate the same behavior that can be achieved implementing a KeyListener#keyReleased, and perform the associated action only when the user releases the sequence.

There's anyway to do that?
Re: How to prevent key binding execution repetition [message #989035 is a reply to message #988643] Tue, 04 December 2012 11:24 Go to previous messageGo to next message
Jose Renato is currently offline Jose Renato
Messages: 11
Registered: February 2011
Junior Member
Nobody?
Re: How to prevent key binding execution repetition [message #989291 is a reply to message #989035] Wed, 05 December 2012 14:48 Go to previous message
Jose Renato is currently offline Jose Renato
Messages: 11
Registered: February 2011
Junior Member
After a lot of search, I can't find any satisfactory solution. So, I just removed the key bindings from plugin.xml and implemented all of them on KeyDown event from Display class, like this:

PlatformUI.getWorkbench().getDisplay().addFilter( SWT.KeyUp, new MyListener() );


But, I'm still looking for a better solution, based on some Eclipse API that provides any option to change the trigger event for bindings.
Previous Topic:TrayDialog insists on showing Help on tray
Next Topic:How to export a GMF Editor to RCP
Goto Forum:
  


Current Time: Wed Sep 17 23:57:33 GMT 2014

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

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