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; }