Package org.eclipse.swt.internal
Class BidiUtil
java.lang.Object
org.eclipse.swt.internal.BidiUtil
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidaddLanguageListener(Control control, Runnable runnable) static intReturn the active keyboard language type.static booleanReturn whether or not the platform supports a bidi language.static voidremoveLanguageListener(Control control) static intresolveTextDirection(String text) Determine the base direction for the given text.static voidsetKeyboardLanguage(int language) Switch the keyboard language to the specified language type.
- 
Field Details- 
KEYBOARD_NON_BIDIpublic static final int KEYBOARD_NON_BIDI- See Also:
 
- 
KEYBOARD_BIDIpublic static final int KEYBOARD_BIDI- See Also:
 
- 
CLASSINpublic static final int CLASSIN- See Also:
 
- 
LINKBEFOREpublic static final int LINKBEFORE- See Also:
 
- 
LINKAFTERpublic static final int LINKAFTER- See Also:
 
- 
CLASS_HEBREWpublic static final int CLASS_HEBREW- See Also:
 
- 
CLASS_ARABICpublic static final int CLASS_ARABIC- See Also:
 
- 
CLASS_LOCALNUMBERpublic static final int CLASS_LOCALNUMBER- See Also:
 
- 
CLASS_LATINNUMBERpublic static final int CLASS_LATINNUMBER- See Also:
 
- 
REORDERpublic static final int REORDER- See Also:
 
- 
LIGATEpublic static final int LIGATE- See Also:
 
- 
GLYPHSHAPEpublic static final int GLYPHSHAPE- See Also:
 
 
- 
- 
Constructor Details- 
BidiUtilpublic BidiUtil()
 
- 
- 
Method Details- 
addLanguageListener
- 
getKeyboardLanguagepublic static int getKeyboardLanguage()Return the active keyboard language type.- Returns:
- an integer representing the active keyboard language (KEYBOARD_BIDI, KEYBOARD_NON_BIDI)
 
- 
isBidiPlatformpublic static boolean isBidiPlatform()Return whether or not the platform supports a bidi language. Determine this by looking at the languages that are installed.- Returns:
- true if bidi is supported, false otherwise. Always false on Windows CE.
 
- 
removeLanguageListener
- 
resolveTextDirectionDetermine the base direction for the given text. The direction is derived from the first strong bidirectional RIGHT_TO_LEFT character. Or if that does not exist from the first strong LEFT_TO_RIGHT character- Parameters:
- text- Text base direction should be resolved for.
- Returns:
- SWT#LEFT_RIGHT or SWT#RIGHT_TO_LEFT if the text contains strong characters and thus the direction can be resolved, SWT#NONE otherwise.
- Since:
- 3.105
 
- 
setKeyboardLanguagepublic static void setKeyboardLanguage(int language) Switch the keyboard language to the specified language type. We do not distinguish between multiple bidi or multiple non-bidi languages, so set the keyboard to the first language of the given type.- Parameters:
- language- integer representing language. One of KEYBOARD_BIDI, KEYBOARD_NON_BIDI.
 
 
-