Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrate Google Chrome browser into eclipse

Tags:

java

eclipse

swt

I am trying to create an application using SWT Browser. Is it possible to integrate Google Chrome as browser into Eclipse (not as external web browser)?

like image 959
Darshan Nair Avatar asked Jun 13 '12 09:06

Darshan Nair


2 Answers

No, as of current stable release of google chrome, you cannot use it inside SWT. The reason is that google chrome (and essentially chromium) doesn't support ActiveX (like IE, Firefox, Safari etc) but is based on NPAPI. (Note: I am considering that you are working on Windows machine as you haven't mentioned in your question !!)

But there are projects which are trying to make an embeddable version of chromium. See these links:

  1. Chromiumembedded
  2. Is Google Chrome embeddable?
like image 62
Favonius Avatar answered Nov 17 '22 03:11

Favonius


You can set it through Eclipse UI.

Goto : Window > Preferences > General > Web Browser

Select "Use External Browser" radio button

Click "New" button to add a new browser eg. Chrome !

Click Apply + Ok

... and you have it working !

like image 2
Kaustubh Dixit Avatar answered Nov 17 '22 05:11

Kaustubh Dixit