eclipse 将谷歌Chrome浏览器集成到eclipse中
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11012202/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Integrate Google Chrome browser into eclipse
提问by Darshan Nair
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)?
我正在尝试使用 SWT 浏览器创建一个应用程序。是否可以将 Google Chrome 作为浏览器集成到 Eclipse 中(而不是作为外部网络浏览器)?
回答by Favonius
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 !!)
不,从谷歌浏览器的当前稳定版本开始,你不能在 SWT 中使用它。原因是谷歌浏览器(本质上是铬)不支持 ActiveX(如 IE、Firefox、Safari 等),而是基于NPAPI。(注意:我正在考虑您在 Windows 机器上工作,因为您在问题中没有提到!!)
But there are projects which are trying to make an embeddable version of chromium. See these links:
但是有些项目正在尝试制作可嵌入版本的铬。请参阅这些链接:
回答by Kaustubh Dixit
You can set it through Eclipse UI.
您可以通过 Eclipse UI 进行设置。
Goto : Window > Preferences > General > Web Browser
转到:窗口 > 首选项 > 常规 > Web 浏览器
Select "Use External Browser" radio button
选择“使用外部浏览器”单选按钮
Click "New" button to add a new browser eg. Chrome !
单击“新建”按钮添加新浏览器,例如。铬合金 !
Click Apply + Ok
单击应用 + 确定
... and you have it working !
...你让它工作了!
回答by Rotka
Bug 405031 - [Browser] implement Chromium support
错误 405031 - [浏览器] 实现 Chromium 支持
回答by RP-
If you can not make it through UI, Try to edit settings in the following file.
如果您无法通过 UI 进行设置,请尝试编辑以下文件中的设置。
YOUR-WORKSPACE\.metadata\.plugins\org.eclipse.core.runtime\.settings
将有一个名为的文件org.eclipse.ui.browser.prefs
org.eclipse.ui.browser.prefs
,使用任何文本编辑器打开它并更改适当的值,它是自我描述的,您可以轻松找到要更改的内容和所有内容。在修改之前备份相同的内容。Hope this helps you.
希望这对你有帮助。
EDIT: Restart your eclipse to effect the above change.
编辑:重新启动您的日食以实现上述更改。