Jump to: navigation, search

How can I invoke the eclipse default web browser in my own plugin?

Revision as of 17:29, 24 November 2006 by Johnjbarton.johnjbarton.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Allen Young wrote:

> > I want to invoke the eclipse default web browser which is specified in 
> > "Preferences" -> "General" -> "Web Browser" in my own plugin, giving it 
> > a URL and make it visit that URL. How can I do this? Thanks.

I think you want something like...

IWorkbenchBrowserSupport support =
IWebBrowser browser = support.createBrowser("someId");
browser.openURL(new URL("http://www.eclipse.org"));

Regards, Rem