Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Embed the swt browser in a view
Embed the swt browser in a view [message #447842] Sat, 18 December 2004 00:04 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: Embed the swt browser in a view [message #447860 is a reply to message #447859] Mon, 20 December 2004 08:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: swtnewbie.hotmail.com

also forgot to mention,



public void setFocus()
{//do not set focus to anythin.
}
Re: Embed the swt browser in a view [message #447873 is a reply to message #447860] Mon, 20 December 2004 17:41 Go to previous message
Christophe Cornu is currently offline Christophe CornuFriend
Messages: 304
Registered: July 2009
Senior Member
And if someone is looking for an example, try the SWT Browser Demo plugin
- get it from the Eclipse download page under "Example Plug-ins". It shows
up in Eclipse under Show View > SWT Examples > Browser Demo
- or in cvs at:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.exa mples.browser.demos/

Chris
Previous Topic:[Graphics] Two questions ...
Next Topic:Inserting into TableTree
Goto Forum:
  


Current Time: Sat Apr 20 04:28:12 GMT 2024

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

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

Back to the top