Bug 412029 - Compat DIEditorPart disposes parent context on Eclipse 4 - fixed
diff --git a/bundles/org.eclipse.e4.tools.compat/src/org/eclipse/e4/tools/compat/parts/DIEditorPart.java b/bundles/org.eclipse.e4.tools.compat/src/org/eclipse/e4/tools/compat/parts/DIEditorPart.java
index 0c99e15..c20e922 100644
--- a/bundles/org.eclipse.e4.tools.compat/src/org/eclipse/e4/tools/compat/parts/DIEditorPart.java
+++ b/bundles/org.eclipse.e4.tools.compat/src/org/eclipse/e4/tools/compat/parts/DIEditorPart.java
@@ -153,7 +153,7 @@
 		// Check if running in 3.x, otherwise there was no dedicated context
 		// created
 		if (parentContext
-				.get("org.eclipse.e4.ui.workbench.IPresentationEngine") != null) {
+				.get("org.eclipse.e4.ui.workbench.IPresentationEngine") == null) {
 			context.dispose();
 			context = null;
 		}