aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWojciech Sudol2014-02-20 08:03:27 (EST)
committerGerrit Code Review @ Eclipse.org2014-02-24 14:31:29 (EST)
commit5479fbcb2d0fc973f1279341eb87570555a12c8c (patch)
treea3d104ecd46da6fac12dc8da29f5fc2decd5cca6
parent914515721924eb99fc6e2194d9e1701442a8da24 (diff)
downloadeclipse.platform.ui-5479fbcb2d0fc973f1279341eb87570555a12c8c.zip
eclipse.platform.ui-5479fbcb2d0fc973f1279341eb87570555a12c8c.tar.gz
eclipse.platform.ui-5479fbcb2d0fc973f1279341eb87570555a12c8c.tar.bz2
Bug 348954 - Active Part is incorrect and does not have focus on arefs/changes/02/22302/2
restart Change-Id: I2f1113bbfcd67f929907c522ce5cfb7ea3896e9f Signed-off-by: Wojciech Sudol <wojciech.sudol@pl.ibm.com>
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/WBWRenderer.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/WBWRenderer.java b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/WBWRenderer.java
index d5132ae..108b868 100644
--- a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/WBWRenderer.java
+++ b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/WBWRenderer.java
@@ -746,6 +746,7 @@ public class WBWRenderer extends SWTPartRenderer {
shell.setMinimized(true);
shell.layout(true);
+ forceLayout(shell);
if (shellME.isVisible()) {
shell.open();
} else {
@@ -892,4 +893,16 @@ public class WBWRenderer extends SWTPartRenderer {
}
}
}
+
+ private static void forceLayout(Shell shell) {
+ int i = 0;
+ while(shell.isLayoutDeferred()) {
+ shell.setLayoutDeferred(false);
+ i++;
+ }
+ while(i > 0) {
+ shell.setLayoutDeferred(true);
+ i--;
+ }
+ }
}