Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Adding New tab to web browser in Eclipse
Adding New tab to web browser in Eclipse [message #542237] Thu, 24 June 2010 10:07 Go to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 26
Registered: May 2010
Junior Member
Hi ,

I have created a web browser with the help of org.eclipse.swt.browser.
I have added- stop, refresh, back, forward, address bar etc to it.

Now, I want to add new tab functionality to it. I have added button for it but don't know how to proceed with the action listener for new tab button.

Please guide me to implement this, its very urgent. Sad


Regards,
Akash Mahakode
Re: Adding New tab to web browser in Eclipse [message #542291 is a reply to message #542237] Thu, 24 June 2010 13:10 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
You need to provide a TabFolder or CTabFolder to hold the Browser(s), one
per tab. When you want to create a new tab containing a new Browser, create
a new TabItem or CTabItem for it. Example TabFolder and CTabFolder
snippets:

http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org. eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet76. java
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org. eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet165 .java

Grant


"Akash Mahakode" <akash.mahakode@gmail.com> wrote in message
news:hvvapj$mn0$1@build.eclipse.org...
> Hi ,
>
> I have created a web browser with the help of org.eclipse.swt.browser.
> I have added- stop, refresh, back, forward, address bar etc to it.
>
> Now, I want to add new tab functionality to it. I have added button for it
but don't know how to proceed with the action listener for new tab button.
>
> Please guide me to implement this, its very urgent. :(
>
>
> Regards,
> Akash Mahakode
Previous Topic:How to give name to the toolbar group on Customize perspective dialog?
Next Topic:RCP headless build, launcher name
Goto Forum:
  


Current Time: Tue Sep 24 08:04:51 GMT 2024

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

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

Back to the top