|
|
Re: [How to] launch browser on url [message #2934 is a reply to message #2795] |
Tue, 22 April 2003 13:21   |
Eclipse User |
|
|
|
Thanks for the hint. The 3 methods in ProductInfoDialog did what I needed:
openLink(String href)
openWebBrowser(String href)
openWebBrowserError(Display display)
Copied them into my plugin and got it open the browser on my link.
Thanks,
Todd
Genady wrote:
Genady wrote:
> I want to do that myself, but apparently it requires to check the
> platform and run the appropriate command. I found this technique in
> the code of the about dialog box ( I don't remember what class it was )
>
> Todd Chambery wrote:
>
>> Hey all,
>>
>> I need to launch a browser from my plugin on a url of the form:
>>
>> http://sourceforge.net/forum/forum.php?thread_id=853477& forum_id=265703
>>
>> I found something in the archive about
>> org.eclipse.swt.program.Program, but that looks to only launch an
>> associated program for a (html) file.
>>
>> Is there a way to programmatically do this?
>>
>> thanks,
>>
>> Todd
>>
>
> I want to do that myself, but apparently it requires to check the
> platform and run the appropriate command. I found this technique in
> the code of the about dialog box ( I don't remember what class it was )
>
> Todd Chambery wrote:
>
>> Hey all,
>>
>> I need to launch a browser from my plugin on a url of the form:
>>
>> http://sourceforge.net/forum/forum.php?thread_id=853477& forum_id=265703
>>
>> I found something in the archive about
>> org.eclipse.swt.program.Program, but that looks to only launch an
>> associated program for a (html) file.
>>
>> Is there a way to programmatically do this?
>>
>> thanks,
>>
>> Todd
>>
>
|
|
|
|
|
|
|
|
Re: [How to] launch browser on url [message #4440 is a reply to message #3020] |
Tue, 22 April 2003 15:19  |
Eclipse User |
|
|
|
If you need to use browser support from help plug-in, use
org.eclipse.help.internal.browser.BrowserManager.createBrows er() to get your
IBrowser instance rather than using same instance as help. Also, the
BrowserManager class is less likely to get changed, than HelpSystem class.
Konrad Kolosowski
"Michael R Head" <burner@zclipse.org> wrote in message
news:pan.2003.04.22.17.42.38.353192@zclipse.org...
> On Tue, 22 Apr 2003 13:39:09 -0400, Michael R Head wrote:
>
>
> >>
> >
> > Check out the browser extension point in org.eclipse.help
>
> sorry, that's for defining web browsers. But you might be able to get at:
>
> org.eclipse.help.internal.HelpSystem.getHelpBrowser()
>
> (it's public/static for now)
>
|
|
|
Powered by
FUDForum. Page generated in 0.06609 seconds