Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2013-03-15 14:12:45 +0000
committerMarkus Keller2013-03-15 14:13:35 +0000
commit8c847bd90c57b21551e6abc825da8fcbb7ddfcf7 (patch)
treef395e847bc1a189636240bedbce47d74e029d544 /examples
parentd70c8e9262eea26019872187da5a2dd263e38c8e (diff)
downloadeclipse.platform.swt-8c847bd90c57b21551e6abc825da8fcbb7ddfcf7.tar.gz
eclipse.platform.swt-8c847bd90c57b21551e6abc825da8fcbb7ddfcf7.tar.xz
eclipse.platform.swt-8c847bd90c57b21551e6abc825da8fcbb7ddfcf7.zip
- added warning that this is only implemented on Windows
- added label to clarify difference with FLIP_TEXT_DIRECTION
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet364.java16
1 files changed, 9 insertions, 7 deletions
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet364.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet364.java
index 83476618ca..6d56ef8e78 100644
--- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet364.java
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet364.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2012 IBM Corporation and others.
+ * Copyright (c) 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -13,16 +13,16 @@ package org.eclipse.swt.snippets;
/*
* BIDI example snippet: Set the text direction independent of the widget orientation.
*
+ * Note: This snippet currently only works on Windows.
+ *
* For a list of all SWT example snippets see
* http://www.eclipse.org/swt/snippets/
*/
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Shell;
+import org.eclipse.swt.*;
+import org.eclipse.swt.graphics.*;
+import org.eclipse.swt.layout.*;
+import org.eclipse.swt.widgets.*;
public class Snippet364 {
@@ -39,6 +39,8 @@ public class Snippet364 {
Button b2 = new Button(shell, SWT.PUSH | SWT.RIGHT_TO_LEFT);
b2.setText("Button RIGHT_TO_LEFT...");
b2.setImage(i);
+
+ new Label(shell, SWT.NONE).setText("with FLIP_TEXT_DIRECTION:");
Button b3 = new Button(shell, SWT.PUSH | SWT.LEFT_TO_RIGHT | SWT.FLIP_TEXT_DIRECTION);
b3.setText("Button LEFT_TO_RIGHT...");

Back to the top