Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLina Kemmel2015-05-13 18:55:18 +0000
committerLina Kemmel2015-05-13 18:55:18 +0000
commit6ce5b14811cf352529ba1eec51434b8d93262945 (patch)
tree56c21fdacd5da3f13240d7989f94457bc4ff219a
parent0fd3fce032a102d2e134150ed342fe71288d4a11 (diff)
downloadeclipse.platform.swt-6ce5b14811cf352529ba1eec51434b8d93262945.tar.gz
eclipse.platform.swt-6ce5b14811cf352529ba1eec51434b8d93262945.tar.xz
eclipse.platform.swt-6ce5b14811cf352529ba1eec51434b8d93262945.zip
[Bug 430012] [BiDi] Implement contextual base text direction for
Widgets: GTK and Cocoa constants / stubs
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Widget.java10
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java10
2 files changed, 20 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Widget.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Widget.java
index 27931557c6..549c26ac97 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Widget.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Widget.java
@@ -90,6 +90,12 @@ public abstract class Widget {
/* Notify of the opportunity to skin this widget */
static final int SKIN_NEEDED = 1<<21;
+ /* Bidi "auto" text direction */
+ static final int HAS_AUTO_DIRECTION = 0;
+
+ /* Bidi flag and for auto text direction */
+ static final int AUTO_TEXT_DIRECTION = SWT.LEFT_TO_RIGHT | SWT.RIGHT_TO_LEFT;
+
/* Default size for widgets */
static final int DEFAULT_WIDTH = 64;
static final int DEFAULT_HEIGHT = 64;
@@ -1444,6 +1450,10 @@ public void removeDisposeListener (DisposeListener listener) {
eventTable.unhook (SWT.Dispose, listener);
}
+static int resolveTextDirection(String text) {
+ return SWT.NONE;
+}
+
void scrollClipViewToPoint (long /*int*/ id, long /*int*/ sel, long /*int*/ clipView, NSPoint point) {
objc_super super_struct = new objc_super();
super_struct.receiver = id;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java
index 7c2d6716f5..29c81c47ae 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java
@@ -102,6 +102,12 @@ public abstract class Widget {
/* Should sub-windows be checked when EnterNotify received */
static final int CHECK_SUBWINDOW = 1<<25;
+ /* Bidi "auto" text direction */
+ static final int HAS_AUTO_DIRECTION = 0;
+
+ /* Bidi flag and for auto text direction */
+ static final int AUTO_TEXT_DIRECTION = SWT.LEFT_TO_RIGHT | SWT.RIGHT_TO_LEFT;
+
/* Default size for widgets */
static final int DEFAULT_WIDTH = 64;
static final int DEFAULT_HEIGHT = 64;
@@ -1311,6 +1317,10 @@ public void removeDisposeListener (DisposeListener listener) {
eventTable.unhook (SWT.Dispose, listener);
}
+static int resolveTextDirection(String text) {
+ return SWT.NONE;
+}
+
void sendEvent (Event event) {
Display display = event.display;
if (!display.filterEvent (event)) {

Back to the top