summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2011-09-10 14:46:04 (EDT)
committer Steffen Pingel2011-09-10 16:15:54 (EDT)
commite4ff3ed6f92fe52c24baebd6e1e990b212f188b4 (patch)
tree8efb14f161f9d5987fba7bc53cdb631cb7fb5770
parent78909d2f1014f351e7b8270334da10140322564b (diff)
downloadorg.eclipse.mylyn.commons-e4ff3ed6f92fe52c24baebd6e1e990b212f188b4.zip
org.eclipse.mylyn.commons-e4ff3ed6f92fe52c24baebd6e1e990b212f188b4.tar.gz
org.eclipse.mylyn.commons-e4ff3ed6f92fe52c24baebd6e1e990b212f188b4.tar.bz2
NEW - bug 357310: [windows] fix OpenID support on IE
https://bugs.eclipse.org/bugs/show_bug.cgi?id=357310 Change-Id: I1016cd4b284e90d1b7f93d6ebeb39330bf93df12
-rw-r--r--org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/internal/provisional/commons/ui/dialogs/WebBrowserDialog.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/internal/provisional/commons/ui/dialogs/WebBrowserDialog.java b/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/internal/provisional/commons/ui/dialogs/WebBrowserDialog.java
index ed9a43b..51999a7 100644
--- a/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/internal/provisional/commons/ui/dialogs/WebBrowserDialog.java
+++ b/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/internal/provisional/commons/ui/dialogs/WebBrowserDialog.java
@@ -15,6 +15,7 @@ import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
+import java.lang.reflect.Method;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
@@ -72,6 +73,18 @@ public class WebBrowserDialog extends MessageDialog {
return text;
}
+ public boolean setUrl(String url, String postData, String[] headers) {
+ // TODO e3.6 replace reflection with call to setUrl(...)
+ Method method;
+ try {
+ method = Browser.class.getDeclaredMethod("setUrl", String.class, String.class, //$NON-NLS-1$
+ String[].class);
+ return (Boolean) method.invoke(getBrowser(), url, postData, headers);
+ } catch (Exception e) {
+ return false;
+ }
+ }
+
public static int openText(Shell parent, String title, String message, String text) {
if (PlatformUiUtil.hasInternalBrowser()) {
WebBrowserDialog dialog = new WebBrowserDialog(parent, title, null, message, NONE,