static synchronized void loadLibrary() {
   if (loaded) return;
   loaded = true;
   /*
    * Note that the jawt library is loaded explicitly
    * because it cannot be found by the library loader.
    * All exceptions are caught because the library may
    * have been loaded already.
    */
   try {
     System.loadLibrary("jawt");
   } catch (Throwable e) {
   }
   Library.loadLibrary("swt-awt");
 }
Example #2
0
 static {
   Library.loadLibrary("swt-cocoa"); // $NON-NLS-1$
   WebInitForCarbon();
 }
Example #3
0
 static {
   Library.loadLibrary("swt-atk");
 }
Example #4
0
 static {
   Library.loadLibrary("swt-gdip"); // $NON-NLS-1$
 }