Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » how to launch external browser, e.g. IE, Mozilla, Safari
how to launch external browser, e.g. IE, Mozilla, Safari [message #445072] Mon, 25 October 2004 16:07 Go to next message
Andreas Niemeyer is currently offline Andreas NiemeyerFriend
Messages: 40
Registered: July 2009
Member
Hi,

I would like to start a external browser about a selection event from a
button. It is possible to get the default system browser to launch ? I
have a `about' dialog and want to show the aligned website from the app.

Many thanks,
Andreas
Re: how to launch external browser, e.g. IE, Mozilla, Safari [message #445073 is a reply to message #445072] Mon, 25 October 2004 16:23 Go to previous messageGo to next message
L.M. Fridael is currently offline L.M. FridaelFriend
Messages: 16
Registered: July 2009
Junior Member
Andreas Niemeyer wrote:
> I would like to start a external browser about a selection event from a
> button. It is possible to get the default system browser to launch ? I
> have a `about' dialog and want to show the aligned website from the app.

Take a look at the org.eclipse.swt.program.Program.

Example:
Program.launch("http://www.google.com/");


Regards
-Laurens
Re: how to launch external browser, e.g. IE, Mozilla, Safari [message #445077 is a reply to message #445073] Mon, 25 October 2004 16:33 Go to previous message
Andreas Niemeyer is currently offline Andreas NiemeyerFriend
Messages: 40
Registered: July 2009
Member
Hi Laurens,

it that easy, thanks. I just find the way in bugreport

https://bugs.eclipse.org/bugs/show_bug.cgi?id=69647

Program program= Program.findProgram("html");
if (program == null)
program= Program.findProgram("htm");
if (program != null)
program.execute(fURLString);


Regards,
Andreas

Laurens wrote:

> Andreas Niemeyer wrote:
>
>> I would like to start a external browser about a selection event from
>> a button. It is possible to get the default system browser to launch ?
>> I have a `about' dialog and want to show the aligned website from the
>> app.
>
>
> Take a look at the org.eclipse.swt.program.Program.
>
> Example:
> Program.launch("http://www.google.com/");
>
>
> Regards
> -Laurens
Previous Topic:ListViewer - select an added item
Next Topic:How to change the checkbox state in a CheckBoxTableViewer
Goto Forum:
  


Current Time: Tue Nov 24 19:06:16 GMT 2020

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

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

Back to the top