/** * Loads 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 with * <code>name</code> is used to load the library. If this fails, * <code>name</code> is used in another attempt to load the library, * this time ignoring the SWT version encoding scheme. * * @param name the name of the library to load */ public static void loadLibrary (String name) { loadLibrary (name, true); }
/** * Loads 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 with * <code>name</code> is used to load the library. If this fails, * <code>name</code> is used in another attempt to load the library, * this time ignoring the SWT version encoding scheme. * * @param name the name of the library to load */ public static void loadLibrary (String name) { loadLibrary (name, true); }
/** * Loads 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 with * <code>name</code> is used to load the library. If this fails, * <code>name</code> is used in another attempt to load the library, * this time ignoring the SWT version encoding scheme. * * @param name the name of the library to load */ public static void loadLibrary (String name) { loadLibrary (name, true); }
/** * Loads 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 with * <code>name</code> is used to load the library. If this fails, * <code>name</code> is used in another attempt to load the library, * this time ignoring the SWT version encoding scheme. * * @param name the name of the library to load */ public static void loadLibrary (String name) { loadLibrary (name, true); }
/** * Loads 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 with * <code>name</code> is used to load the library. If this fails, * <code>name</code> is used in another attempt to load the library, * this time ignoring the SWT version encoding scheme. * * @param name the name of the library to load */ public static void loadLibrary (String name) { loadLibrary (name, true); }
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"); }
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"); }
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"); }
static synchronized void loadLibrary () { if (loaded) return; loaded = true; Toolkit.getDefaultToolkit(); /* * 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"); }
static synchronized void loadLibrary () { if (loaded) return; loaded = true; Toolkit.getDefaultToolkit(); /* * 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"); }
String initXULRunner (String mozillaPath) { if (Device.DEBUG) System.out.println ("XULRunner path: " + mozillaPath); //$NON-NLS-1$ try { Library.loadLibrary ("swt-xulrunner"); //$NON-NLS-1$ } catch (UnsatisfiedLinkError e) { SWT.error (SWT.ERROR_NO_HANDLES, e); } /* * Remove the trailing xpcom lib name from mozillaPath because the * Mozilla.initialize and NS_InitXPCOM2 invocations require a directory name only. */ String mozillaDirPath = mozillaPath.substring (0, mozillaPath.lastIndexOf (SEPARATOR_OS)); MozillaDelegate.loadAdditionalLibraries (mozillaDirPath, false); byte[] path = MozillaDelegate.wcsToMbcs (null, mozillaPath, true); int rc = XPCOM.XPCOMGlueStartup (path); if (rc != XPCOM.NS_OK) { browser.dispose (); error (rc); } XPCOMWasGlued = true; return mozillaDirPath; }
String initXULRunner (String mozillaPath) { if (Device.DEBUG) System.out.println ("XULRunner path: " + mozillaPath); //$NON-NLS-1$ try { Library.loadLibrary ("swt-xulrunner"); //$NON-NLS-1$ } catch (UnsatisfiedLinkError e) { SWT.error (SWT.ERROR_NO_HANDLES, e); } /* * Remove the trailing xpcom lib name from mozillaPath because the * Mozilla.initialize and NS_InitXPCOM2 invocations require a directory name only. */ String mozillaDirPath = mozillaPath.substring (0, mozillaPath.lastIndexOf (SEPARATOR_OS)); MozillaDelegate.loadAdditionalLibraries (mozillaDirPath, false); byte[] path = MozillaDelegate.wcsToMbcs (null, mozillaPath, true); int rc = XPCOM.XPCOMGlueStartup (path); if (rc != XPCOM.NS_OK) { browser.dispose (); error (rc); } XPCOMWasGlued = true; return mozillaDirPath; }
String initXULRunner (String mozillaPath) { if (Device.DEBUG) System.out.println ("XULRunner path: " + mozillaPath); //$NON-NLS-1$ try { Library.loadLibrary ("swt-xulrunner"); //$NON-NLS-1$ } catch (UnsatisfiedLinkError e) { SWT.error (SWT.ERROR_NO_HANDLES, e); } /* * Remove the trailing xpcom lib name from mozillaPath because the * Mozilla.initialize and NS_InitXPCOM2 invocations require a directory name only. */ String mozillaDirPath = mozillaPath.substring (0, mozillaPath.lastIndexOf (SEPARATOR_OS)); MozillaDelegate.loadAdditionalLibraries (mozillaDirPath, false); byte[] path = MozillaDelegate.wcsToMbcs (null, mozillaPath, true); int rc = XPCOM.XPCOMGlueStartup (path); if (rc != XPCOM.NS_OK) { browser.dispose (); error (rc); } XPCOMWasGlued = true; return mozillaDirPath; }
String initXULRunner (String mozillaPath) { if (Device.DEBUG) System.out.println ("XULRunner path: " + mozillaPath); //$NON-NLS-1$ try { Library.loadLibrary ("swt-xulrunner"); //$NON-NLS-1$ } catch (UnsatisfiedLinkError e) { SWT.error (SWT.ERROR_NO_HANDLES, e); } /* * Remove the trailing xpcom lib name from mozillaPath because the * Mozilla.initialize and NS_InitXPCOM2 invocations require a directory name only. */ String mozillaDirPath = mozillaPath.substring (0, mozillaPath.lastIndexOf (SEPARATOR_OS)); MozillaDelegate.loadAdditionalLibraries (mozillaDirPath); byte[] path = MozillaDelegate.wcsToMbcs (null, mozillaPath, true); int rc = XPCOM.XPCOMGlueStartup (path); if (rc != XPCOM.NS_OK) { browser.dispose (); error (rc); } XPCOMWasGlued = true; return mozillaDirPath; }
String initXULRunner (String mozillaPath) { if (Device.DEBUG) System.out.println ("XULRunner path: " + mozillaPath); //$NON-NLS-1$ try { Library.loadLibrary ("swt-xulrunner"); //$NON-NLS-1$ } catch (UnsatisfiedLinkError e) { SWT.error (SWT.ERROR_NO_HANDLES, e); } /* * Remove the trailing xpcom lib name from mozillaPath because the * Mozilla.initialize and NS_InitXPCOM2 invocations require a directory name only. */ String mozillaDirPath = mozillaPath.substring (0, mozillaPath.lastIndexOf (SEPARATOR_OS)); MozillaDelegate.loadAdditionalLibraries (mozillaDirPath, false); byte[] path = MozillaDelegate.wcsToMbcs (null, mozillaPath, true); int rc = XPCOM.XPCOMGlueStartup (path); if (rc != XPCOM.NS_OK) { browser.dispose (); error (rc); } XPCOMWasGlued = true; return mozillaDirPath; }
Library.loadLibrary ("swt-mozilla"); //$NON-NLS-1$ } catch (UnsatisfiedLinkError e) { try { Library.loadLibrary ("swt-mozilla-gcc3"); //$NON-NLS-1$ } catch (UnsatisfiedLinkError ex) { browser.dispose ();
Library.loadLibrary ("swt-mozilla"); //$NON-NLS-1$ } catch (UnsatisfiedLinkError e) { try { Library.loadLibrary ("swt-mozilla-gcc3"); //$NON-NLS-1$ } catch (UnsatisfiedLinkError ex) { browser.dispose ();
static boolean cde_init(Display display) { try { Library.loadLibrary("swt-cde"); } catch (Throwable e) { return false; } /* Use the character encoding for the default locale */ CDE.XtToolkitInitialize(); int /*long*/ xtContext = CDE.XtCreateApplicationContext (); int /*long*/ xDisplay = OS.gdk_x11_display_get_xdisplay(OS.gdk_display_get_default()); byte[] appName = Converter.wcsToMbcs(null, "CDE", true); byte[] appClass = Converter.wcsToMbcs(null, "CDE", true); int /*long*/ [] argc = new int /*long*/ [] {0}; CDE.XtDisplayInitialize(xtContext, xDisplay, appName, appClass, 0, 0, argc, 0); int /*long*/ widgetClass = CDE.topLevelShellWidgetClass (); cdeShell = CDE.XtAppCreateShell (appName, appClass, widgetClass, xDisplay, null, 0); CDE.XtSetMappedWhenManaged (cdeShell, false); CDE.XtResizeWidget (cdeShell, 10, 10, 0); CDE.XtRealizeWidget (cdeShell); boolean initOK = CDE.DtAppInitialize(xtContext, xDisplay, cdeShell, appName, appName); if (initOK) CDE.DtDbLoad(); return initOK; }
static boolean cde_init(Display display) { try { Library.loadLibrary("swt-cde"); } catch (Throwable e) { return false; } /* Use the character encoding for the default locale */ CDE.XtToolkitInitialize(); int /*long*/ xtContext = CDE.XtCreateApplicationContext (); int /*long*/ xDisplay = OS.gdk_x11_display_get_xdisplay(OS.gdk_display_get_default()); byte[] appName = Converter.wcsToMbcs(null, "CDE", true); byte[] appClass = Converter.wcsToMbcs(null, "CDE", true); int /*long*/ [] argc = new int /*long*/ [] {0}; CDE.XtDisplayInitialize(xtContext, xDisplay, appName, appClass, 0, 0, argc, 0); int /*long*/ widgetClass = CDE.topLevelShellWidgetClass (); cdeShell = CDE.XtAppCreateShell (appName, appClass, widgetClass, xDisplay, null, 0); CDE.XtSetMappedWhenManaged (cdeShell, false); CDE.XtResizeWidget (cdeShell, 10, 10, 0); CDE.XtRealizeWidget (cdeShell); boolean initOK = CDE.DtAppInitialize(xtContext, xDisplay, cdeShell, appName, appName); if (initOK) CDE.DtDbLoad(); return initOK; }
static boolean cde_init(Display display) { try { Library.loadLibrary("swt-cde"); } catch (Throwable e) { return false; } /* Use the character encoding for the default locale */ CDE.XtToolkitInitialize(); long /*int*/ xtContext = CDE.XtCreateApplicationContext (); long /*int*/ xDisplay = OS.gdk_x11_display_get_xdisplay(OS.gdk_display_get_default()); byte[] appName = Converter.wcsToMbcs(null, "CDE", true); byte[] appClass = Converter.wcsToMbcs(null, "CDE", true); long /*int*/ [] argc = new long /*int*/ [] {0}; CDE.XtDisplayInitialize(xtContext, xDisplay, appName, appClass, 0, 0, argc, 0); long /*int*/ widgetClass = CDE.topLevelShellWidgetClass (); cdeShell = CDE.XtAppCreateShell (appName, appClass, widgetClass, xDisplay, null, 0); CDE.XtSetMappedWhenManaged (cdeShell, false); CDE.XtResizeWidget (cdeShell, 10, 10, 0); CDE.XtRealizeWidget (cdeShell); boolean initOK = CDE.DtAppInitialize(xtContext, xDisplay, cdeShell, appName, appName); if (initOK) CDE.DtDbLoad(); return initOK; }