Customizing GTK Settings Specifically for Eclipse:
To configure the GTK settings exclusively for Eclipse, you can create a gtkrc file within your home directory (e.g., ~/.gtkrc-eclipse) with the following content:
gtk-color-scheme = "selected_bg_color:#0AFC02\nselected_fg_color:#FFFFFF\norginal_selected_bg_color:#f07746\ntooltip_bg_color:#f5f5c5\ntooltip_fg_color:#000000"
Run Eclipse from the command line using:
env GTK2_RC_FILES=/usr/share/themes/<Your current theme>/gtk-2.0/gtkrc:/home/<user name>/.gtkrc-eclipse '
env GTK2_RC_FILES=/usr/share/themes/Ambiance/gtk-2.0/gtkrc:/home/chandrayya/.gtkrc-eclipse '/opt/eclipse-3.3/eclipse'
You can determine your current GNOME theme by executing:
gsettings get org.gnome.desktop.interface gtk-theme
Select your preferred color codes for foreground and background.
For additional information, check out this post on Changing Eclipse sidebar vertical scope highlighting.