| 
| Key bindings / Listen for changes [message #332926] | Fri, 14 November 2008 05:30 |  | 
| Eclipse User  |  |  |  |  | Originally posted by: mario.winterer.gmx.net 
 Hi!
 
 In my UI there is a text control with a control decoration with a
 description text that contains the key sequence of a certain command.
 
 I've done this as follows:
 
 IBindingService service = (IBindingService)
 PlatformUI.getWorkbench().getService(IBindingService.class);
 TriggerSequence triggerSequence =
 service.getBestActiveBindingFor(COMMAND_ID);
 ....
 (build decoration description using triggerSequence.format())
 
 Now I want to listen for changes of key bindings to update the UI every
 time, the binding of the given command changes. Unfortunately,
 IBindingService does not offer any add/remove-listener methods.
 What is the correct way to do that?
 
 Thanks,
 Mario
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.03427 seconds