aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDean Roberts2011-11-09 08:39:29 (EST)
committerPaul Webster2011-11-09 08:39:29 (EST)
commit1d016deba61f8585bd568dddf6e51c25d06dcc65 (patch)
tree183e3860d3fbc26a69da18189cb8a96f2fd8581c
parent5e15d8954551428c720c68600403d5ceb8fc74b6 (diff)
downloadeclipse.platform.ui-1d016deba61f8585bd568dddf6e51c25d06dcc65.zip
eclipse.platform.ui-1d016deba61f8585bd568dddf6e51c25d06dcc65.tar.gz
eclipse.platform.ui-1d016deba61f8585bd568dddf6e51c25d06dcc65.tar.bz2
Bug 362345 - TrimStack throws IAE
Always show the restore icon
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.addons.swt/src/org/eclipse/e4/ui/workbench/addons/minmax/TrimStack.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/bundles/org.eclipse.e4.ui.workbench.addons.swt/src/org/eclipse/e4/ui/workbench/addons/minmax/TrimStack.java b/bundles/org.eclipse.e4.ui.workbench.addons.swt/src/org/eclipse/e4/ui/workbench/addons/minmax/TrimStack.java
index 8e643eb..ece1f94 100644
--- a/bundles/org.eclipse.e4.ui.workbench.addons.swt/src/org/eclipse/e4/ui/workbench/addons/minmax/TrimStack.java
+++ b/bundles/org.eclipse.e4.ui.workbench.addons.swt/src/org/eclipse/e4/ui/workbench/addons/minmax/TrimStack.java
@@ -456,13 +456,11 @@ public class TrimStack {
if (isEditorStack()) {
if (trimStackTB.getItemCount() == 1) {
MUIElement data = getLeafPart(minimizedElement);
- if (data != null) {
- ToolItem ti = new ToolItem(trimStackTB, SWT.CHECK);
- ti.setToolTipText(Messages.TrimStack_SharedAreaTooltip);
- ti.setImage(getLayoutImage());
- ti.setData(data);
- ti.addSelectionListener(toolItemSelectionListener);
- }
+ ToolItem ti = new ToolItem(trimStackTB, SWT.CHECK);
+ ti.setToolTipText(Messages.TrimStack_SharedAreaTooltip);
+ ti.setImage(getLayoutImage());
+ ti.setData(data);
+ ti.addSelectionListener(toolItemSelectionListener);
}
} else if (minimizedElement instanceof MPartStack) {
MPartStack theStack = (MPartStack) minimizedElement;