| Summary: | [Tools] liveeditor generates invalid keybindings | ||
|---|---|---|---|
| Product: | [Eclipse Project] e4 | Reporter: | Paul Webster <pwebster> |
| Component: | UI | Assignee: | Project Inbox <e4.ui-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | tom.schindl |
| Version: | 1.0 | ||
| Target Milestone: | 1.0 RC3 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Paul Webster
The problem you see is that I listen on SWT.Modify. I've 2 different solutions to the problem: a) I add a Validator which checks checkbindings (Is there a method in the binding code I can use to validate?) b) Modify the content on focus-out I can't fix this problem before tomorrow because I'm traveling until tonight. Ideally I could implement a) but I need to know what a valid binding is (I could also check for duplicates). With my last set of changes to bug 317299 it's not as urgent (I reject bindings with invalid key sequences). We should try and add a couple of bindings, even one with a parameter like: org.eclipse.ui.navigate.showIn org.eclipse.ui.navigate.showIn.targetId=org.eclipse.jdt.ui.PackageExplorer CTRL+5 P PW Can you point me to the valdidation code so that I could use the logic there? org.eclipse.e4.ui.internal.workbench.E4CommandProcessor.createBinding(Context, ECommandService, EBindingService, MCommand, List<MParameter>, String, MKeyBinding) is the model to Binding code. PW Paul, I've fixed this in HEAD. When running in the Live-Editor the model is NOT updated until a proper sequence is entered. In the none live case I show a warning but keep the model in sync with the UI. I'll look into adding EMF-Validations before saving the complete model hopefully in the next days. |