diff options
author | Lina Kemmel <lkemmel@il.ibm.com> | 2013-03-13 15:12:29 -0400 |
---|---|---|
committer | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2013-03-13 15:12:29 -0400 |
commit | 2b14d767020ed3598cdf53c0df27bc3b8bd1ea64 (patch) | |
tree | c1d7cf106131c5d5751b32f571340a38b99f3353 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java | |
parent | 71391fc1dc9d75effb13782c0dee4de011e77da2 (diff) | |
download | eclipse.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/Link.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java index 7181cab877..6f697eeff6 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java @@ -738,6 +738,19 @@ public void setText (String string) { } } +boolean updateTextDirection(int textDirection) { + if (super.updateTextDirection(textDirection)) { + int flags = SWT.RIGHT_TO_LEFT | SWT.LEFT_TO_RIGHT; + style &= ~SWT.MIRRORED; + style &= ~flags; + style |= textDirection & flags; + updateOrientation (); + checkMirrored (); + return true; + } + return false; +} + int widgetStyle () { int bits = super.widgetStyle (); return bits | OS.WS_TABSTOP; |