commit | 312fc47a0aa1466fe00b5cc76d1414037d50078b | [log] [tgz] |
---|---|---|
author | Eric Moffatt <emoffatt> | Wed Mar 04 19:16:37 2009 +0000 |
committer | Eric Moffatt <emoffatt> | Wed Mar 04 19:16:37 2009 +0000 |
tree | 98b361d28eead0a66bc65ca17fdb6c0e8d7db523 | |
parent | 7acb8c53e2c63a7459a471a5e82a4d9e0111f548 [diff] |
Fix for Bug 267080 - Bring the compatibility layer back in line with the new workbench code
diff --git a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/workbench/ui/renderers/swt/WBPartFactory.java b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/workbench/ui/renderers/swt/WBPartFactory.java index 5286c90..8a79b8a 100644 --- a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/workbench/ui/renderers/swt/WBPartFactory.java +++ b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/workbench/ui/renderers/swt/WBPartFactory.java
@@ -65,6 +65,9 @@ parentContext.set(IServiceConstants.ACTIVE_CHILD, localContext); localContext.set(MWindow.class.getName(), part); + // Add the shell into the WBW's context + localContext.set(Shell.class.getName(), wbwShell); + if (part instanceof MWorkbenchWindow) { TrimmedLayout tl = new TrimmedLayout(wbwShell); wbwShell.setLayout(tl);