aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Moffatt2011-07-18 09:30:47 (EDT)
committerPaul Webster2011-08-25 10:21:53 (EDT)
commit73dc602614b3f8772e154a1f914530d88ca74de4 (patch)
treecdf043d916cd550377e307f52f84bfb4db667b63
parentff80c5f88a189b4a4e96c71dc8f5738ba9625368 (diff)
downloadeclipse.platform.ui-73dc602614b3f8772e154a1f914530d88ca74de4.zip
eclipse.platform.ui-73dc602614b3f8772e154a1f914530d88ca74de4.tar.gz
eclipse.platform.ui-73dc602614b3f8772e154a1f914530d88ca74de4.tar.bz2
Amended fix for Bug 344761 - [BIDI] WBWRenderer should look for RTL
flags. Fix test MPE's.
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/WBWRenderer.java5
1 files changed, 3 insertions, 2 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 5359c8a..c217c3a 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
@@ -361,9 +361,10 @@ public class WBWRenderer extends SWTPartRenderer {
MWindow wbwModel = (MWindow) element;
MApplication appModel = wbwModel.getContext().get(MApplication.class);
- boolean rtlMode = (Boolean) appModel.getTransientData().get(
+ Boolean rtlMode = (Boolean) appModel.getTransientData().get(
E4Workbench.RTL_MODE);
- int rtlStyle = rtlMode ? SWT.RIGHT_TO_LEFT : 0;
+ int rtlStyle = (rtlMode != null && rtlMode.booleanValue()) ? SWT.RIGHT_TO_LEFT
+ : 0;
Shell parentShell = parent == null ? null : ((Control) parent)
.getShell();