Skip to main content


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 21:16 Go to next message
Eclipse UserFriend
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 21:53 Go to previous messageGo to next message
Remy Suen is currently offline Remy SuenFriend
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 14:15 Go to previous messageGo to next message
Eclipse UserFriend
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 17:49 Go to previous message
Eclipse UserFriend
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: Fri Mar 29 14:08:39 GMT 2024

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

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

Back to the top