Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How To Open IWebBrowser With Internal Browser Only
How To Open IWebBrowser With Internal Browser Only [message #484721] Tue, 08 September 2009 17:16 Go to next message
Eclipse User
Originally posted by: runzhou.li.gmail.com

Hi,

Currently I'm doing something like this to open an url using the internal
browser:

IWorkbenchBrowserSupport support =
PlatformUI.getWorkbench().getBrowserSupport();
IWebBrowser browser = support.createBrowser( "demo" );
browser.openURL( url );

However under some circumstances, such as when I try to open the page
through an IResourceChangeListener implementation, it actually opens an
external browser for me, which is unwanted.

Please help.

--
Runzhou Li
Re: How To Open IWebBrowser With Internal Browser Only [message #484724 is a reply to message #484721] Tue, 08 September 2009 17:53 Go to previous messageGo to next message
Remy Suen is currently offline Remy Suen
Messages: 462
Registered: July 2009
Senior Member
On Tue, 08 Sep 2009 17:16:38 -0400, Runzhou Li wrote:
> However under some circumstances, such as when I try to open the page
> through an IResourceChangeListener implementation, it actually opens an
> external browser for me, which is unwanted.

You could try to force it with the style bits. Keyword is "try".
https://bugs.eclipse.org/bugs/show_bug.cgi?id=166019

Remy
Re: How To Open IWebBrowser With Internal Browser Only [message #484864 is a reply to message #484724] Wed, 09 September 2009 10:15 Go to previous messageGo to next message
Eclipse User
Originally posted by: runzhou.li.gmail.com

Thank you for the help!

But yeah, it doesn't work...

"Remy Suen" <remysuen@ca.ibm.com> 写入消息
news:h86jof$k63$1@build.eclipse.org...
> On Tue, 08 Sep 2009 17:16:38 -0400, Runzhou Li wrote:
>> However under some circumstances, such as when I try to open the page
>> through an IResourceChangeListener implementation, it actually opens an
>> external browser for me, which is unwanted.
>
> You could try to force it with the style bits. Keyword is "try".
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=166019
>
> Remy
Re: How To Open IWebBrowser With Internal Browser Only [message #484926 is a reply to message #484864] Wed, 09 September 2009 13:49 Go to previous message
Eclipse User
Originally posted by: runzhou.li.gmail.com

Alright so problem is resolved.

This is about the non-UI thread access issue. So in order to run this UI
related functionality in a non-UI thread, I have to wrap what I'm doing with
an asyncExec runnable in order to do the job.

"Runzhou Li" <runzhou.li@gmail.com> 写入消息
news:h88dan$k3v$1@build.eclipse.org...
> Thank you for the help!
>
> But yeah, it doesn't work...
>
> "Remy Suen" <remysuen@ca.ibm.com> 写入消息
> news:h86jof$k63$1@build.eclipse.org...
>> On Tue, 08 Sep 2009 17:16:38 -0400, Runzhou Li wrote:
>>> However under some circumstances, such as when I try to open the page
>>> through an IResourceChangeListener implementation, it actually opens an
>>> external browser for me, which is unwanted.
>>
>> You could try to force it with the style bits. Keyword is "try".
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=166019
>>
>> Remy
>
Previous Topic:HandlerUtil getSelection methods
Next Topic:help location
Goto Forum:
  


Current Time: Tue Jul 29 19:04:07 EDT 2014

Powered by FUDForum. Page generated in 0.01862 seconds