Embed the swt browser in a view [message #447842] |
Sat, 18 December 2004 00:04 |
Eclipse User |
|
|
|
Originally posted by: robert_dayton.yahoo.com
Hi,
I searched the newsgroups but didn't find an obvious solution, how do I
embed the swt browser widget in a view?
I tried out a code snippet to bring up the browser, which works fine
except it opens up in a new window. I want the browser to be just a view
on the eclipse IDE, rather than a separate window. Pointers will be
appreciated.
Thanks,
Rob
|
|
|
Re: Embed the swt browser in a view [message #447859 is a reply to message #447842] |
Mon, 20 December 2004 08:14 |
Eclipse User |
|
|
|
Originally posted by: swtnewbie.hotmail.com
hi ,
try this.
just add the browser within this composite parent_comp.Looks like ur doin
this, Browser browser = new Browser(shell,....);
try doin, Browser browser = new Browser(parent_comp ,....);
************************************************************ *
private Composite parent_comp; //open trace
public void createPartControl(Composite parent) {
parent_comp = parent;
Browser browser = new Browser(parent_comp ,....);
parent_comp .setCotrol(browser);
}
hope it helps u.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03180 seconds