Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Ufimtsev2017-12-18 17:47:56 +0000
committerLeo Ufimtsev2018-01-08 18:00:12 +0000
commit0e432fe9ff571db1d57aefc31e218eee34b06f63 (patch)
treecd2b38ed5e5e86f74b79bba8a47831c63185b28a
parent3d43b491cf2ac4eeb590246da34935011eeaf716 (diff)
downloadeclipse.platform.swt-0e432fe9ff571db1d57aefc31e218eee34b06f63.tar.gz
eclipse.platform.swt-0e432fe9ff571db1d57aefc31e218eee34b06f63.tar.xz
eclipse.platform.swt-0e432fe9ff571db1d57aefc31e218eee34b06f63.zip
Bug 519334 – [Browser] should throw a meaningful error message if Webkit
is not available. Prints something nice like: Exception in thread "main" org.eclipse.swt.SWTError: No more handles because no underlying browser available. Linux:Webkitgtk(1 or 2), Mac:Webkit, Windows:Webkit or IE at org.eclipse.swt.SWT.error(SWT.java:4563) at org.eclipse.swt.browser.Browser.<init>(Browser.java:103) at widget.browser.snip_browser_eventListeners.main(snip_browser_eventListeners.java:29) Change-Id: I5f2586b6b5b75930ae04351e10be3670006601b3 Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/Browser.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/Browser.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/Browser.java
index 947db2c607..9c4fc0bda8 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/Browser.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/Browser.java
@@ -100,7 +100,7 @@ public Browser (Composite parent, int style) {
return;
}
dispose ();
- SWT.error (SWT.ERROR_NO_HANDLES);
+ SWT.error (SWT.ERROR_NO_HANDLES, null, " because no underlying browser available. Linux:Webkitgtk(1 or 2), Mac:Webkit, Windows:Webkit or IE");
}
static Composite checkParent (Composite parent) {
@@ -733,10 +733,10 @@ public int getStyle () {
*
* @return HTML representing the current page or an empty <code>String</code>
* if this is empty.<br>
- * <p> Note, the exact return value is platform dependent.
+ * <p> Note, the exact return value is platform dependent.
* For example on Windows, the returned string is the proccessed webpage
- * with javascript executed and missing html tags added.
- * On Linux and OS X, this returns the original HTML before the browser has
+ * with javascript executed and missing html tags added.
+ * On Linux and OS X, this returns the original HTML before the browser has
* processed it.</p>
*
* @exception SWTException <ul>

Back to the top