Darshan Nair
Darshan Nair

Reputation: 323

Integrate Google Chrome browser into eclipse

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)?

Upvotes: 9

Views: 20385

Answers (5)

Sebastian Sampaoli
Sebastian Sampaoli

Reputation: 1

To integrate Chromium into Eclipse or SWT applications you can use https://github.com/equoplatform/chromium-swt.

Upvotes: 0

Rotka
Rotka

Reputation: 430

Bug 405031 - [Browser] implement Chromium support

https://bugs.eclipse.org/bugs/show_bug.cgi?id=405031

Upvotes: 2

Kaustubh Dixit
Kaustubh Dixit

Reputation: 37

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 !

Upvotes: 2

Favonius
Favonius

Reputation: 13974

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?

Upvotes: 7

RP-
RP-

Reputation: 5837

If you can not make it through UI, Try to edit settings in the following file.

YOUR-WORKSPACE\.metadata\.plugins\org.eclipse.core.runtime\.settings
there will be a file called org.eclipse.ui.browser.prefs open it with any text editor and change the appropriate values, It is self descriptive you can easily find out what to change and all. Have a back up of the same before you modify.

Hope this helps you.

EDIT: Restart your eclipse to effect the above change.

Upvotes: 0

Related Questions