Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

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

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 =
  PlatformUI.getWorkbench().getBrowserSupport();
IWebBrowser browser = support.createBrowser("someId");
browser.openURL(new URL("http://www.eclipse.org"));

Regards, Rem

Back to the top