Package org.eclipse.swt.internal
Class Library
java.lang.Object
org.eclipse.swt.internal.Library
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intThe JAVA and SWT versionsstatic final intThe JAVA and SWT versionsstatic final String
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic Stringstatic intJAVA_VERSION(int major, int minor, int micro) Returns the Java version number as an integer.static voidloadLibrary(String name) Loads the shared library that matches the version of the Java code which is currently running.static voidloadLibrary(String name, boolean mapName) Loads the shared library that matches the version of the Java code which is currently running.static intSWT_VERSION(int major, int minor) Returns the SWT version number as an integer.
- 
Field Details- 
JAVA_VERSIONpublic static final int JAVA_VERSIONThe JAVA and SWT versions
- 
SWT_VERSIONpublic static final int SWT_VERSIONThe JAVA and SWT versions
- 
USER_HOME
 
- 
- 
Constructor Details- 
Librarypublic Library()
 
- 
- 
Method Details- 
JAVA_VERSIONpublic static int JAVA_VERSION(int major, int minor, int micro) Returns the Java version number as an integer.- Returns:
- the version
 
- 
SWT_VERSIONpublic static int SWT_VERSION(int major, int minor) Returns the SWT version number as an integer.- Returns:
- the version
 
- 
loadLibraryLoads the shared library that matches the version of the Java code which is currently running. SWT shared libraries follow an encoding scheme where the major, minor and revision numbers are embedded in the library name and this along withnameis used to load the library. If this fails,nameis used in another attempt to load the library, this time ignoring the SWT version encoding scheme.- Parameters:
- name- the name of the library to load
 
- 
loadLibraryLoads the shared library that matches the version of the Java code which is currently running. SWT shared libraries follow an encoding scheme where the major, minor and revision numbers are embedded in the library name and this along withnameis used to load the library. If this fails,nameis used in another attempt to load the library, this time ignoring the SWT version encoding scheme.- Parameters:
- name- the name of the library to load
- mapName- true if the name should be mapped, false otherwise
 
- 
getVersionString- Returns:
- String Combined SWT version like 4826
 
 
-