When troubleshooting Eclipse bugs, I sometimes ask if you are running eclipse on gtk2 or gtk3.
Usually I can tell visually if Eclipse is running on Gtk2 or Gtk3, but this changes depending on your system theme.
In the about section
As Alexander Kurtakov pointed out and described in Lar’s article ,
Help -> About -> Installation Details -> Configuration Tab.
Look for something like:
org.eclipse.swt.internal.gtk.version=3.14.12
It’s usually somewhere near line 84 ish. But you can copy the text and search for it in your text editor.
Note, if this line is missing altogether, you’re (very most likely) running Eclipse on Gtk2.
See what version is on your system
You can find out which version of gtk is installed on your system by running pkg-config (you might need to install it first). This gives you an indication of which version of gtk eclipse might be using.
pkg-config --modversion gtk+-3.0
Force Eclipse to use either gtk2 / gtk3
You can force Eclipse to use a certain version of gtk:
#Gtk3 forced:
export SWT_GTK3=1
eclipse
#Gtk2 forced:
export SWT_GTK3=0
eclipse
Under gtk3, the entry in the about section should be present like: org.eclipse.swt.internal.gtk.version=3.14.12
[edit 2016-09Sep-08Thu]
This is actually by far the most visited blog entry on my blog (20k+ views)
I reference this page quite often, I made a short/memorable url for it: http://bit.ly/gtk2orgtk3