This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 385477 - KeyBinding bound to SubBindingContext does not work
Summary: KeyBinding bound to SubBindingContext does not work
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: 4.2.2+   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-19 05:23 EDT by Stefan Wiese CLA
Modified: 2013-02-06 13:55 EST (History)
4 users (show)

See Also:


Attachments
This application demonstrates the broken KeyBinding when using SubContexts. (12.56 KB, application/x-zip-compressed)
2012-07-19 05:25 EDT, Stefan Wiese CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Wiese CLA 2012-07-19 05:23:57 EDT
Build Identifier: 20120614-1722

In application.e4xmi there are two BindingContexts defined where the second one is a child of the first.
I created two BindingTables, one for each BindingContext. Added two KeyBindings (M1+Shift+R) for the RootContext and (M1+Shift+S) for the SubContext.
The first one executes the command, the second does not.

Reproducible: Always

Steps to Reproduce:
Always.
Comment 1 Stefan Wiese CLA 2012-07-19 05:25:17 EDT
Created attachment 218911 [details]
This application demonstrates the broken KeyBinding when using SubContexts.
Comment 2 Paul Webster CLA 2013-02-06 13:51:28 EST
are these 2 contexts subcontexts in the generated Application.e4xmi?  Or are they at the root level, the same level as dialogAndWindow?  eg:

- org.eclipse.ui.contexts.dialogAndWindow
- - org.eclipse.ui.contexts.window
- - org.eclipse.ui.contexts.dialog
- RootContext
- - SubContext

?
Comment 3 Paul Webster CLA 2013-02-06 13:52:13 EST
(In reply to comment #2)
> are these 2 contexts subcontexts in the generated Application.e4xmi?  Or are
> they at the root level, the same level as dialogAndWindow?  eg:

Or I could just look at the project you attached ... working on that.

PW
Comment 4 Paul Webster CLA 2013-02-06 13:55:18 EST
OK, you don't activate your binding context anywhere (that I could find).  Unless you do that, they won't do anything.

PW