Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » launch HTML in Browser
launch HTML in Browser [message #107534] Wed, 06 August 2003 10:01 Go to next message
Eclipse UserFriend
Originally posted by: luis_benitez.nospam.us.ibm.com

Hello,

I have a plug-in that enables users to create an HTML page. Once finished,
I would like to launch the user's default browser to view the HTML. How do
I go about doing that ? Is there some kind of ShellExecute(...) that I
haven't found ?

-Luis
Re: launch HTML in Browser [message #107572 is a reply to message #107534] Wed, 06 August 2003 10:32 Go to previous message
Eclipse UserFriend
Originally posted by: burner.zclipse.org

On Wed, 06 Aug 2003 10:01:11 -0400, Luis Benitez wrote:

> Hello,
>
> I have a plug-in that enables users to create an HTML page. Once finished,
> I would like to launch the user's default browser to view the HTML. How do
> I go about doing that ? Is there some kind of ShellExecute(...) that I
> haven't found ?

You can use an internal API for now. I understand they are working on
a public API, but I don't have the bug number.

This should work on 2.1.1:

org.eclipse.help.internal.browser.BrowserManager.getInstance ().createBrowser().displayURL( "http://eclipse.org");

mike

>
> -Luis

--
http://zclipse.org
Previous Topic:Implementing createControl() to build Wizard Page
Next Topic:Launch shortcuts
Goto Forum:
  


Current Time: Fri May 09 14:51:44 EDT 2025

Powered by FUDForum. Page generated in 0.03278 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top