Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to open Web page from my plugin???
How to open Web page from my plugin??? [message #464513] Wed, 23 November 2005 16:08 Go to next message
Harish is currently offline HarishFriend
Messages: 6
Registered: July 2009
Junior Member
Hi
In my plugin i want to open web page like www.google.com
Can any one help me how to do this??
Thanks
Harish
Re: How to open Web page from my plugin??? [message #464517 is a reply to message #464513] Wed, 23 November 2005 16:26 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
See the Browser widget:

http://eclipse.org/swt/faq.php#whatisbrowser
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet148.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet128.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup

(there are more Browser snippets - just go to the SWT Snippets page)

"Harish" <harish.l@philips.com> wrote in message
news:f60d6a63acb75dd3d1057af58c3664a4$1@www.eclipse.org...
> Hi
> In my plugin i want to open web page like www.google.com
> Can any one help me how to do this??
> Thanks
> Harish
>
Re: How to open Web page from my plugin??? [message #464525 is a reply to message #464513] Wed, 23 November 2005 18:54 Go to previous message
Eclipse UserFriend
Originally posted by: sunil_kamath.nohotspammail.com

Harish <harish.l@philips.com> wrote:
> Hi
> In my plugin i want to open web page like www.google.com
> Can any one help me how to do this??

If you want to open it in an external browser, call:
PlatformUI.getWorkbench().getBrowserSupport().getExternalBro wser().openURL(new
URL("http://www.google.com"));

--
Sunil
Previous Topic:Change background color for table cell
Next Topic:JFace outside eclipse still needs eclipse core runtime?
Goto Forum:
  


Current Time: Wed Nov 26 07:58:37 GMT 2014

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

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