aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Moffatt2013-05-14 09:55:09 (EDT)
committerGerrit Code Review @ Eclipse.org2013-05-15 13:18:27 (EDT)
commit085e11bfcecca0e29f52973e3035aab5e77970fe (patch)
treed3d82411f036c83bc273f1aa1cefb74875b42222
parent3d6eeeb2857cc8b1bc5fb407e65ed250a892f28f (diff)
downloadeclipse.platform.ui-085e11bfcecca0e29f52973e3035aab5e77970fe.zip
eclipse.platform.ui-085e11bfcecca0e29f52973e3035aab5e77970fe.tar.gz
eclipse.platform.ui-085e11bfcecca0e29f52973e3035aab5e77970fe.tar.bz2
Fix for Bug 407505 - Maximise-Restore causes hidden editor area to berefs/changes/77/12777/2
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.addons.swt/src/org/eclipse/e4/ui/workbench/addons/minmax/MinMaxAddon.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.e4.ui.workbench.addons.swt/src/org/eclipse/e4/ui/workbench/addons/minmax/MinMaxAddon.java b/bundles/org.eclipse.e4.ui.workbench.addons.swt/src/org/eclipse/e4/ui/workbench/addons/minmax/MinMaxAddon.java
index 97c05bd..a81ce81 100644
--- a/bundles/org.eclipse.e4.ui.workbench.addons.swt/src/org/eclipse/e4/ui/workbench/addons/minmax/MinMaxAddon.java
+++ b/bundles/org.eclipse.e4.ui.workbench.addons.swt/src/org/eclipse/e4/ui/workbench/addons/minmax/MinMaxAddon.java
@@ -636,7 +636,7 @@ public class MinMaxAddon {
loc = modelService.getElementLocation(theStack);
if (loc != EModelService.IN_SHARED_AREA && theStack.getWidget() != null
- && !theStack.getTags().contains(MINIMIZED)) {
+ && theStack.isVisible() && !theStack.getTags().contains(MINIMIZED)) {
elementsToMinimize.add(theStack);
}
}
@@ -646,7 +646,7 @@ public class MinMaxAddon {
MPlaceholder eaPlaceholder = (MPlaceholder) modelService
.find(ID_EDITOR_AREA, persp);
if (element != eaPlaceholder && eaPlaceholder != null
- && eaPlaceholder.isToBeRendered()) {
+ && eaPlaceholder.getWidget() != null && eaPlaceholder.isVisible()) {
elementsToMinimize.add(eaPlaceholder);
}
}