Open website from within eclipse's internal browser?

↘锁芯ラ 提交于 2020-01-03 17:19:28

问题


Could anyone help me with opening web pages from within Eclipse's internal (embedded) browser? I'm running Linux (tiling window manager) and Eclipse-3.7.2 side-by-side with browser and it's a pain.

I want this to be able to comfortably read requirements from my code and at the same time code. This could be a question for superuser but it's Eclipse related so I guess I have better shot for an answer here.

Thanks in advance.

edit: I'm running gentoo linux and swt-3.7.1 with compiled in xulrunner support.

edit2: adding picture of gui menu in response to answer bellow.


回答1:


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




回答2:


Open Window / Customize Perspective... menu then on "Command Group Availability" tab find "Web Browser" entry and make sure it is checked. Then confirm that "Web Browser" is also checked on "Tool Bar Visibility" tab. Then you should see a web browser globe icon on toolbar that would open a web browser editor in the IDE.

Though you'll have to change settings on your picture to use "Internal Web Browser" then it will be opened as an Eclipse editor.




回答3:


On Ubuntu 13.04 using Eclipse it automagically worked, I was not sure which webkit I was missing, so I installed all that seemed relevant, if someone has pinpointed which it is, please comment,

Regards,

Gabriel Medina

aptitude install libqt4-webkit libqt5webkit5 libqtscript4-webkit libqtwebkit4 libswt-webkit-gtk-3-jni libwebkitgtk-1.0-0 libwebkitgtk-3.0-0


来源:https://stackoverflow.com/questions/9894530/open-website-from-within-eclipses-internal-browser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!