Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Key bindings / Listen for changes
Key bindings / Listen for changes [message #332926] Fri, 14 November 2008 10:30
Eclipse UserFriend
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
Previous Topic:question about resource traversal in eclipse
Next Topic:How to sort the preferences pages ?
Goto Forum:
  


Current Time: Sun Sep 01 05:50:14 GMT 2024

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

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

Back to the top