问题
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