Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse RT (runtime) » KeyBoard shortcuts(Keyboard shortcuts not working for the first time in my eclipse application)
KeyBoard shortcuts [message #830902] Wed, 28 March 2012 03:46
archana G is currently offline archana G
Messages: 2
Registered: March 2012
Junior Member
Hi,

I have created my eclipse application. I am using some keyboard shortcuts in it.When I launch my application for the first time, the keyboard shortcuts are not working. My binding service seems to be null. But when I close my application and launch it for the second time, keyboard shortcuts work fine. Can anyone provide me some input on this , inorder how to handle this issue.

Am sharing my code snippet

IBindingService bindingService = (IBindingService) workbench
.getService(IBindingService.class);
TriggerSequence sequence = bindingService
.getBestActiveBindingFor(commandId);
KeyBinding binding = (KeyBinding) bindingService
.getPerfectMatch(sequence);

if( binding != null){

ParameterizedCommand paramCommand = binding.getParameterizedCommand();
Command command = paramCommand.getCommand();

}


As my binding is null here , my keyboard shortcuts seems not work.

Any help will be appreciated

thanks in advance
Archana.G




Previous Topic:Self-hosted Frameworks
Next Topic:Eclipse crash
Goto Forum:
  


Current Time: Mon Jul 28 06:25:12 EDT 2014

Powered by FUDForum. Page generated in 0.02808 seconds