Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Adding custom scheme for key bindings
Adding custom scheme for key bindings [message #766321] Thu, 15 December 2011 14:53 Go to next message
Amandeep Chahal is currently offline Amandeep ChahalFriend
Messages: 85
Registered: September 2011
Location: India
Member
Hi,
I'm trying to add key bindings with a custom scheme id as I do not want the key bindings to conflict with the eclipse defaults.
In RCP, this is done by specifying it into the plugin_customization.ini file.
Mine is a single sourced RCP/RAP project. These key bindings don't work in RAP because the scheme is not being set to my custom scheme. How do I set the scheme in RAP?
Thanks.
Re: Adding custom scheme for key bindings [message #766691 is a reply to message #766321] Fri, 16 December 2011 09:16 Go to previous message
Amandeep Chahal is currently offline Amandeep ChahalFriend
Messages: 85
Registered: September 2011
Location: India
Member
Found the solution : http://www.eclipse.org/forums/index.php/t/204414/

Used the below code to activate the custom scheme
BindingService service = (BindingService)PlatformUI.getWorkbench().getService(IBindingService.class);
BindingManager bindingManager = service.getBindingManager();
try {
	bindingManager.setActiveScheme(service.getScheme("myCustomScheme"));
} catch (NotDefinedException e) {
	// TODO Auto-generated catch block
	e.printStackTrace();
}
Previous Topic:Adding custom scheme for key bindings
Next Topic:Jmeter | RAP
Goto Forum:
  


Current Time: Thu Apr 25 23:04:06 GMT 2024

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

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

Back to the top