| Summary: | [QuickAccess] Copy Qualified Name doesn't work | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Paul Webster <pwebster> |
| Component: | UI | Assignee: | Paul Webster <pwebster> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | bsd, daniel_megert, emoffatt, john.arthorne |
| Version: | 4.2 | Flags: | john.arthorne:
pmc_approved+
bsd: review+ |
| Target Milestone: | 4.2.1 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Paul Webster
The lookup context needs to be off of the activeLeaf, or editor based contributions are not found and handled correctly. http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?h=pwebster/bug388931&id=b517497f1691ea81a9d3181445d4f8d72be33309 PW John, I'd like to consider this for 4.2.1. Copy and Paste seem to work without it, but I'm concerned about other editor action contributions similar to Copy Qualified Name. PW Please get a reviewer and post a link to the bug on eclipse-pmc per our freeze plan. Brian, could you please review the change. http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?h=pwebster/bug388931&id=b517497f1691ea81a9d3181445d4f8d72be33309 The problem manifests itself in that quick access ignores a few editor action contributions, like Copy Qualified Name. PW The change makes sense. I tried running with it, verified that CQN works and that the previous EGit problem still works (EGit > delete within branch dialog).
My only concern (and it might actually be a useful thing) is that it causes the handler to be looked up from the part context:
public Object executeCommandInContext(...) {
// ...
EHandlerService hs = lookupContext.get(EHandlerService.class);
try {
final Object rc = hs.executeHandler(command, staticContext);
if (staticContext.get(HandlerServiceImpl.NOT_HANDLED) == Boolean.TRUE) {
But I think this will be a good thing going forward trying to allow E3.x and E4.x pieces to work together.
(In reply to comment #5) > My only concern (and it might actually be a useful thing) is that it causes > the handler to be looked up from the part context: Yes, that's what I want it to do, include the part in the handler lookup (thus including the editor action contributions) PW The fix seems good for this concrete (new) problem. But e.g. 'Cut' (which is already broken in 4.2) still does not work. This makes me think that the code is still fishy/wrong. BTW: For me, 'Quick Access' (Ctrl+3) is anyway unusable in 4.x. due to bug 389018. Released as http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=b517497f1691ea81a9d3181445d4f8d72be33309 PW Works now in 4.2-M20120909-2000. |