Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
index 13bb4cb2460..6ec5213b11c 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
@@ -1798,7 +1798,13 @@ public class WorkbenchPage implements IWorkbenchPage {
}
}
+ for (ViewReference vr : viewReferences) {
+ vr.setPage(null);
+ }
viewReferences.clear();
+ for (EditorReference er : editorReferences) {
+ er.setPage(null);
+ }
editorReferences.clear();
sortedPerspectives.clear();
modelToPerspectiveMapping.clear();
@@ -1829,7 +1835,7 @@ public class WorkbenchPage implements IWorkbenchPage {
.removePropertyChangeListener(workingSetPropertyChangeListener);
workingSetPropertyChangeListener = null;
}
-// _perspectiveStack = null;
+ _perspectiveStack = null;
actionBars = null;
actionSets = null;
actionSwitcher.activePart = null;

Back to the top