diff options
author | Markus Keller | 2013-03-15 14:12:45 +0000 |
---|---|---|
committer | Markus Keller | 2013-03-15 14:13:35 +0000 |
commit | 8c847bd90c57b21551e6abc825da8fcbb7ddfcf7 (patch) | |
tree | f395e847bc1a189636240bedbce47d74e029d544 /examples | |
parent | d70c8e9262eea26019872187da5a2dd263e38c8e (diff) | |
download | eclipse.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.java | 16 |
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...");
|