Summary: | No supported public API for programmatically modifying/adding bindings | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Chris Williams <chris.a.williams> | ||||
Component: | UI | Assignee: | Platform-UI-Inbox <Platform-UI-Inbox> | ||||
Status: | NEW --- | QA Contact: | |||||
Severity: | enhancement | ||||||
Priority: | P3 | CC: | arnaud.brunet+eclipse, bsd, chris.a.williams, christian.pontesegger, pwebster | ||||
Version: | 4.2 | ||||||
Target Milestone: | --- | ||||||
Hardware: | Macintosh | ||||||
OS: | Mac OS X - Carbon (unsup.) | ||||||
See Also: | https://bugs.eclipse.org/bugs/show_bug.cgi?id=379162 | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Chris Williams
2012-05-11 13:43:56 EDT
I don't know if i need open an other bug but the BindingService.addBinding(Binding) method doesn't call BindingManager.addBinding(Binding) method. So BindingService.getBindings() doesn't return a Binding added by the add method. Regards, Arnaud Created attachment 229544 [details]
Breaking backward compatibility patch
A patch that breaks backward compatibility: added addBinding and removeBinding to IBindingService and those methods call now the bindingManager.
Would be great to see some progress here. EASE now supports dynamic keybindings for scripts. We have to use restricted API so far for addBinding()/removeBinding() You should be able to add, tweak, and remove bindings programmatically through the E4 layer (MBindingTable, MBindingContext, MKeyBinding). Those changes should percolate directly into the binding mechanism. |