Closed yosefraisman closed 7 years ago
Successfully implemented. Once we have a version of BugQuery online, we'll revisit.
We now have a version running on a Tomcat server, so I enhanced class SendTrace
to support sending a GET request with the extracted trace to the server in localhost:8080
.
:+1:
Decide on, and implement in
class SendTrace
, a function that open up a webpage with the trace we got as input (replacing the current stub, which prints out the trace to aMessageDialog
).Options:
Desktop.getDesktop().browse(new URL(url).toURI());
(leading answer in Stackoverflow, crashed in my Linux testing. Also, some eclipse alternatives are available, so they are naturally more attractive.)org.eclipse.swt.program
(find an external Browser, and then useProgram.launch(url)
. Makes the most sense, probably easiest in implementation.)PlatformUI.getWorkbench().getBrowserSupport().getExternalBrowser().openURL(url)
(fromInterface IWorkbenchBrowserSupport
. Should work, but it's mainly used for the internal browser from what I can gather.)~Temporarily,
url
will be some version of"https://www.google.com/#q=" + trace + " site:stackoverflow"
~ The finished version of this issue opens a window in the default web browser with a request (containing the stack trace) in the following address:http://localhost:8080/BugQueryServerSide/result.jsp?q=query
.