summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/internal
diff options
context:
space:
mode:
authorLynn Kues <lynne>2001-11-29 21:00:53 +0000
committerLynn Kues <lynne>2001-11-29 21:00:53 +0000
commit04b4c7a7d5e770ae9194a481aae340b3109f15f0 (patch)
tree7fadf30a6f38e78a670c09847a8adefbfcd9d654 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/internal
parent081d2a840b62d7c3fd6cd41f2a36814660aadc58 (diff)
downloadeclipse.platform.swt-04b4c7a7d5e770ae9194a481aae340b3109f15f0.tar.gz
eclipse.platform.swt-04b4c7a7d5e770ae9194a481aae340b3109f15f0.tar.xz
eclipse.platform.swt-04b4c7a7d5e770ae9194a481aae340b3109f15f0.zip
6438
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/internal')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/internal/BidiUtil.java28
1 files changed, 14 insertions, 14 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/internal/BidiUtil.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/internal/BidiUtil.java
index a18fde4c60..fd4b0a5783 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/internal/BidiUtil.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/internal/BidiUtil.java
@@ -80,20 +80,6 @@ public static void drawGlyphs(GC gc, char[] renderBuffer, int[] renderDx, int x,
OS.ExtTextOutW(gc.handle, x, y, ETO_GLYPH_INDEX, rect, renderBuffer, renderBuffer.length, renderDx);
}
/*
- * Checks the current keyboard language list to see if a bidi language is installed.
- *
- */
-public static boolean isBidiPlatform() {
- int[] languages = getKeyboardLanguageList();
- for (int i=0; i<languages.length; i++) {
- int language = languages[i] & 0x000000FF;;
- if ((language == LANG_ARABIC) || (language == LANG_HEBREW)) {
- return true;
- }
- }
- return false;
-}
-/*
* Wraps GetFontLanguageInfo and GetCharacterPlacement functions.
*
* gc, text & flags are input parameters
@@ -337,6 +323,20 @@ static int[] getKeyboardLanguageList() {
return list;
}
/*
+ * Checks the current keyboard language list to see if a bidi language is installed.
+ *
+ */
+public static boolean isBidiPlatform() {
+ int[] languages = getKeyboardLanguageList();
+ for (int i=0; i<languages.length; i++) {
+ int language = languages[i] & 0x000000FF;;
+ if ((language == LANG_ARABIC) || (language == LANG_HEBREW)) {
+ return true;
+ }
+ }
+ return false;
+}
+/*
*
*/
public static void removeLanguageListener (int hwnd) {