summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java
diff options
context:
space:
mode:
authorLina Kemmel <lkemmel@il.ibm.com>2013-03-13 15:12:29 -0400
committerSilenio Quarti <silenio_quarti@ca.ibm.com>2013-03-13 15:12:29 -0400
commit2b14d767020ed3598cdf53c0df27bc3b8bd1ea64 (patch)
treec1d7cf106131c5d5751b32f571340a38b99f3353 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java
parent71391fc1dc9d75effb13782c0dee4de011e77da2 (diff)
downloadeclipse.platform.swt-2b14d767020ed3598cdf53c0df27bc3b8bd1ea64.tar.gz
eclipse.platform.swt-2b14d767020ed3598cdf53c0df27bc3b8bd1ea64.tar.xz
eclipse.platform.swt-2b14d767020ed3598cdf53c0df27bc3b8bd1ea64.zip
Bug 273198 - [Bidi] Lack of support for controlling text direction independently from widget orientation
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java
index 676518bb05..4ef3a33cdf 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ExpandBar.java
@@ -567,6 +567,18 @@ public void setSpacing (int spacing) {
OS.InvalidateRect (handle, null, true);
}
+boolean updateTextDirection(int textDirection) {
+ if (super.updateTextDirection(textDirection)) {
+ for (int i = 0, n = items.length; i < n; i++) {
+ if (items[i] != null) {
+ items[i].updateTextDirection(style & SWT.FLIP_TEXT_DIRECTION);
+ }
+ }
+ return true;
+ }
+ return false;
+}
+
void showItem (ExpandItem item) {
Control control = item.control;
if (control != null && !control.isDisposed ()) {