Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2016-01-26 18:38:16 +0000
committerMarkus Keller2016-01-26 18:38:16 +0000
commit980fb7a4a263331110eeb4edbb70c8c8b760a23f (patch)
tree746a22339713bf341b53c0387a11d40562a149ff
parentbcf0355cebdee9feb06bfc7d1e734b3376371237 (diff)
downloadeclipse.platform.swt-980fb7a4a263331110eeb4edbb70c8c8b760a23f.tar.gz
eclipse.platform.swt-980fb7a4a263331110eeb4edbb70c8c8b760a23f.tar.xz
eclipse.platform.swt-980fb7a4a263331110eeb4edbb70c8c8b760a23f.zip
Bug 473850: [BiDi] Add text direction test toI20160126-2000
org.eclipse.swt.examples.controlexample.CustomControlExample
-rw-r--r--examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/Tab.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/Tab.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/Tab.java
index 9bbcc92f70..22c8916873 100644
--- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/Tab.java
+++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/Tab.java
@@ -1571,9 +1571,12 @@ abstract class Tab {
* In case one of the buttons that control text direction was selected,
* apply the text direction on the controls in the client area.
*
- * @return true if text direction style was applied and false otherwise.
+ * @return false iff example widgets must be re-created
*/
boolean handleTextDirection (Widget widget) {
+ if (!rtlSupport ()) {
+ return false;
+ }
int textDirection = SWT.NONE;
if (ltrDirectionButton.equals (widget)) {
textDirection = SWT.LEFT_TO_RIGHT;

Back to the top