Community
Participate
Working Groups
Please add - IBindingService.getActiveBindingFor(commandId, activeContextIds) - IBindingService.getActiveBindingFor(parameterizedCommand, activeContextIds) - IBindingService.getBestActiveBindingFor(commandId, activeContextIds) - IBindingService.getBestActiveBindingFor(parameterizedCommand,activeContextIds) See bug 187306 and bug 187812 for details.
The first two methods should be called getActiveBindingsFor(..) ("Binding*s*").
of course ;-)
Created attachment 89305 [details] Initial Patch
Created attachment 89429 [details] revised patch with passing test
Created attachment 89433 [details] revised patch with passing test
Created attachment 89434 [details] patch with test v03 Same patch with some of the formatting changes removed. PW
Jason, please rework the new BindingManager method to be: getActiveBindingsForContexts(ParameterizedCommand command, Set localContexts) Then add the equivalent method for localized contexts: getBestActiveBindingForContext(ParameterizedCommand command, Set localContexts) You should add another BindingManagerTest that adds at least 2 bindings for one parameterized command so that they can be sorted by the new method. Check out one of the earlier tests we added. Then we need to add those 2 methods to IBindingService and BindingService as passthrough methods. PW
Created attachment 89453 [details] patch with test v04
Updated as per http://wiki.eclipse.org/Platform_UI/Bug_Triage PW
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.