summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorMarkus Keller2013-03-15 10:12:45 (EDT)
committer Carolyn MacLeod2013-04-09 10:56:37 (EDT)
commite67e09a1099f3bb4a176333aedf09e7d458a4333 (patch)
treed0802c4148952c44b4dbfc699b6d176e77ea0017
parent785af25a4e2004f6ddee56c36e9aafe395ac506a (diff)
downloadeclipse.platform.swt-e67e09a1099f3bb4a176333aedf09e7d458a4333.zip
eclipse.platform.swt-e67e09a1099f3bb4a176333aedf09e7d458a4333.tar.gz
eclipse.platform.swt-e67e09a1099f3bb4a176333aedf09e7d458a4333.tar.bz2
- added warning that this is only implemented on Windows
- added label to clarify difference with FLIP_TEXT_DIRECTION
-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 8347661..6d56ef8 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...");