Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Webster2012-09-06 12:00:42 +0000
committerPaul Webster2012-09-06 12:00:42 +0000
commitb517497f1691ea81a9d3181445d4f8d72be33309 (patch)
treed9c85ed56bea714efeab4bb3ebe88be447792e9e
parentdd5d2c356e03b0723a1b36e0f541d33194599aef (diff)
downloadeclipse.platform.ui-b517497f1691ea81a9d3181445d4f8d72be33309.tar.gz
eclipse.platform.ui-b517497f1691ea81a9d3181445d4f8d72be33309.tar.xz
eclipse.platform.ui-b517497f1691ea81a9d3181445d4f8d72be33309.zip
Bug 388931 - [QuickAccess] Copy Qualified Name doesn't workv20120906-120042R4_2_1M20120912-1200M20120909-2000
The lookup context needs to be off of the active leaf, or editor based contributions won't be handled correctly.
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/handlers/LegacyHandlerService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/handlers/LegacyHandlerService.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/handlers/LegacyHandlerService.java
index 6208f30ebe7..854c7483e62 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/handlers/LegacyHandlerService.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/handlers/LegacyHandlerService.java
@@ -541,7 +541,7 @@ public class LegacyHandlerService implements IHandlerService {
// populated by parameters by the EHS
staticContext = ((ExpressionContext) context).eclipseContext.createChild();
} else {
- staticContext = eclipseContext.createChild("snapshotContext"); //$NON-NLS-1$
+ staticContext = eclipseContext.getActiveLeaf().createChild("snapshotContext"); //$NON-NLS-1$
if (event != null) {
staticContext.set(Event.class, event);
}

Back to the top