Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Moffatt2011-06-13 17:43:37 +0000
committerEric Moffatt2011-06-13 17:43:37 +0000
commit597302777b70e82036712d9d4e6c52b5cf7c544c (patch)
tree4356edb7336271fa64397d855647d87b1c36bc42
parent6695be530b70c006aaff262e79112ba9b52c0e84 (diff)
downloadeclipse.platform.ui.e4-597302777b70e82036712d9d4e6c52b5cf7c544c.tar.gz
eclipse.platform.ui.e4-597302777b70e82036712d9d4e6c52b5cf7c544c.tar.xz
eclipse.platform.ui.e4-597302777b70e82036712d9d4e6c52b5cf7c544c.zip
Fix for Bug 349118 - 'Outline' view disappeared after maximizing a view
-rw-r--r--bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/ModelServiceImpl.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/ModelServiceImpl.java b/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/ModelServiceImpl.java
index c5028ddb..72295203 100644
--- a/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/ModelServiceImpl.java
+++ b/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/ModelServiceImpl.java
@@ -745,9 +745,15 @@ public class ModelServiceImpl implements EModelService {
List<MPlaceholder> phList = findElements(area, null, MPlaceholder.class, null);
for (MPlaceholder ph : phList) {
ps.hidePart((MPart) ph.getRef());
-
ph.getParent().getChildren().remove(ph);
}
+
+ // Prevent shared stacks ids from clashing with the ones in the perspective
+ List<MPartStack> stacks = findElements(area, null, MPartStack.class, null);
+ for (MPartStack stack : stacks) {
+ String generatedId = "PartStack@" + Integer.toHexString(stack.hashCode()); //$NON-NLS-1$
+ stack.setElementId(generatedId);
+ }
}
// Remove any minimized stacks for this perspective

Back to the top