Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Browser IE not open link in a tab(Is the "open in new tab" option available for SWT Browser IE?)
Browser IE not open link in a tab [message #829594] Mon, 26 March 2012 14:23 Go to next message
Grace Lo is currently offline Grace LoFriend
Messages: 2
Registered: March 2012
Junior Member
I tried to use the SWT Browser with default option (not Mozilla) and set the url to a valid site. Then when running, I found the "open in new tab" option is disabled for any links. I could only use "open in a new window". But on that machine's IE 9 settings, I have set the Internet Options to "enable tabbed browsing", "Always open pop-ups in a new tab" for pop-up and "A new tab in the current window" for open links from other programs.

Is this a SWT Browser implementation limitation or related to IE setting? Thanks.


Grace
Re: Browser IE not open link in a tab [message #829694 is a reply to message #829594] Mon, 26 March 2012 17:00 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2151
Registered: July 2009
Senior Member
Hi Grace,

The Browser control just represents the rectangle that HTML content is
shown in. It uses IE's HTML renderer to draw its content, but does not
embed all of IE. Concepts such as tabs live at the level of a browser's
parent container (its "chrome"), such as IE "the application". So this
falls outside of the Browser control's scope, and is not expected to work.

If you embed a Browser control and want to create an SWT tab with a
Browser when a link is opened in a new window then you should be able to
do so by implementing the typical listeners as demonstrated in
http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet270.java
.. Just have your OpenWindowListener create its new Browser within the
same Shell instead of instantiating a new Shell.

Grant


On 3/26/2012 10:23 AM, Grace Lo wrote:
> I tried to use the SWT Browser with default option (not Mozilla) and set
> the url to a valid site. Then when running, I found the "open in new
> tab" option is disabled for any links. I could only use "open in a new
> window". But on that machine's IE 9 settings, I have set the Internet
> Options to "enable tabbed browsing", "Always open pop-ups in a new tab"
> for pop-up and "A new tab in the current window" for open links from
> other programs.
>
> Is this a SWT Browser implementation limitation or related to IE
> setting? Thanks.
>
>
> Grace
Re: Browser IE not open link in a tab [message #829747 is a reply to message #829694] Mon, 26 March 2012 18:27 Go to previous message
Grace Lo is currently offline Grace LoFriend
Messages: 2
Registered: March 2012
Junior Member
Thanks Grant. In my situation, actually I am trying to open the link in a new tab in an external browser, not the embedded browser. I understand the embedded one does not show any tab. What I find is I would open the link in a new window outside the SWT browser. The next time I click on another link from the SWT browser, I also open another new window outside but not able to open a new tab on the existing external browser.


Grace
Previous Topic:Scrollbar inside a tabItem
Next Topic:Cannot set Shell to full screen on Linux
Goto Forum:
  


Current Time: Sat Dec 20 20:57:17 GMT 2014

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

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