Key bindings / Listen for changes [message #332926] |
Fri, 14 November 2008 10:30 |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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.02649 seconds