Adding New tab to web browser in Eclipse [message #542237] |
Thu, 24 June 2010 10:07 |
|
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
|
|
|
Re: Adding New tab to web browser in Eclipse [message #542291 is a reply to message #542237] |
Thu, 24 June 2010 13:10 |
Grant Gayed 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
|
|
|
Powered by
FUDForum. Page generated in 0.03728 seconds