diff options
author | jonas | 2013-08-09 13:10:31 +0000 |
---|---|---|
committer | jonas | 2013-08-09 13:19:09 +0000 |
commit | aa4d049f7532f2a087fc18666fe0263164a5ae36 (patch) | |
tree | 68a750de701f48ce6193a081bc68ac7ca9c2fdf2 | |
parent | 675fa2c2806fa0911257e2ef29422a7ac08708ed (diff) | |
download | org.eclipse.e4.tools-aa4d049f7532f2a087fc18666fe0263164a5ae36.tar.gz org.eclipse.e4.tools-aa4d049f7532f2a087fc18666fe0263164a5ae36.tar.xz org.eclipse.e4.tools-aa4d049f7532f2a087fc18666fe0263164a5ae36.zip |
Bug 414750 - DIViewPart does not handle the @PreDestroy correctlyI20130813-2200I20130812-2200I20130811-2200I20130810-2200I20130809-2200
-rw-r--r-- | bundles/org.eclipse.e4.tools.compat/src/org/eclipse/e4/tools/compat/parts/DIEditorPart.java | 12 |
1 files changed, 2 insertions, 10 deletions
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 f5ea188d..c7053dd9 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 @@ -148,18 +148,10 @@ public abstract class DIEditorPart<C> extends EditorPart implements @Override public void dispose() { - disposeContextIfE3((IEclipseContext) getSite().getService( + PartHelper.disposeContextIfE3((IEclipseContext) getSite().getService( IEclipseContext.class), context); super.dispose(); } - public static void disposeContextIfE3(IEclipseContext parentContext, IEclipseContext context) { - // Check if running in 3.x, otherwise there was no dedicated context - // created - if (parentContext - .get("org.eclipse.e4.ui.workbench.IPresentationEngine") == null) { - context.dispose(); - context = null; - } - } + } |