谁能帮助我从 Eclipse 的内部(嵌入式)浏览器中打开网页?我正在与浏览器并排运行 Linux(平铺窗口管理器)和 Eclipse-3.7.2,这很痛苦。
我希望它能够从我的代码和同时代码中轻松地读取需求。这可能是超级用户的问题,但它与 Eclipse 相关,所以我想我最好在这里找到答案。
提前致谢。
编辑:我正在运行 gentoo linux 和 swt-3.7.1,并在 xulrunner 支持下编译。
edit2:添加 gui 菜单的图片以响应下面的回答。
谁能帮助我从 Eclipse 的内部(嵌入式)浏览器中打开网页?我正在与浏览器并排运行 Linux(平铺窗口管理器)和 Eclipse-3.7.2,这很痛苦。
我希望它能够从我的代码和同时代码中轻松地读取需求。这可能是超级用户的问题,但它与 Eclipse 相关,所以我想我最好在这里找到答案。
提前致谢。
编辑:我正在运行 gentoo linux 和 swt-3.7.1,并在 xulrunner 支持下编译。
edit2:添加 gui 菜单的图片以响应下面的回答。
打开 Window / Customize Perspective... 菜单,然后在“Command Group Availability”选项卡上找到“Web Browser”条目并确保它被选中。然后确认“工具栏可见性”选项卡上的“Web 浏览器”也被选中。然后,您应该会在工具栏上看到一个 Web 浏览器地球图标,该图标将在 IDE 中打开一个 Web 浏览器编辑器。
虽然您必须更改图片上的设置以使用“内部 Web 浏览器”,但它将作为 Eclipse 编辑器打开。
I know the question is old but I just had the same problem and was able to find the soloution.
The internal browser of SWT is using the webkitgtk browser engine. Because you're running gentoo I suppose you currently have net-libs/webkit-gtk:3 installed which is incompatible with SWT. But this is no problem because you can install the compatible net-libs/webkit-gtk:2 in a new slot.
Just install it like this:
emerge net-libs/webkit-gtk:2
After the package is installed the internal webbrowser is working again (for me)
Regards Martin
在使用 Eclipse 的 Ubuntu 13.04 上它自动工作,我不确定我缺少哪个 webkit,所以我安装了所有似乎相关的东西,如果有人指出它是哪个,请评论,
问候,
加布里埃尔·麦地那
aptitude install libqt4-webkit libqt5webkit5 libqtscript4-webkit libqtwebkit4 libswt-webkit-gtk-3-jni libwebkitgtk-1.0-0 libwebkitgtk-3.0-0