| Summary: | [KeyBindings] Constructed context shows in Keys pref page | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Nick Edgar <n.a.edgar> | ||||
| Component: | Debug | Assignee: | Darin Wright <darin.eclipse> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | bokowski, darin.eclipse, pwebster | ||||
| Version: | 3.2 | ||||||
| Target Milestone: | 3.3 RC1 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | 176235 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
Nick Edgar
Paul, the debugger creates contexts on the fly to keep track of which pespectives it has activated views in, for which debug sessions. These contexts are not intended for user consumption. Is there anyway we can mark contexts for "internal use"? Currently there's no way to do that using the org.eclipse.ui.contexts or the IContextService. I'm hesitant to add that as some kind of attribute on a Context, although it might end up being part of the solution. Another option that comes to mind (although I shudder at the thought) is some kind of context filter ... maybe an optional way of retrieving contexts? Would it be close to the key page (and maybe reusable) or close to the IContextService itself ... hmmm? PW kicking it over to UI. marking as enhancement request to support contexts marked for 'internal use'. Hmmm, I've been giving this some thought. I'd hoped to filter keybinding so that they must inherit from dialogAndWindows, but it's valid to have other active contexts with no parent for keybindings. I'm leaning towards adding a default filter to the new Keybindings page. Just like PDE, I'd default it to context IDs that contains *.internal.* Later, PW Using *.internal.* would work for us - we could split the config type with the perspective using ".internal.". (In reply to comment #6) > Using *.internal.* would work for us - we could split the config type with the > perspective using ".internal.". > Is this still do-able? The new keys preference page now filters contexts with .internal. in their ID by default. PW Move the bug to platfrom/debug if you want us to take ownership now. We might consider this in 3.3 RC1. Created attachment 65806 [details]
Fix
Patch changes the "." to ".internal.".
The context still shows on the legacy key binding page.
Darin, please review and apply the patch. +1. Released patch. Added null check back into the code (for targetId). Verified. |