8

I've recently switched to using the new Eclipse Luna, but for some reason it stopped displaying the overlay scrollbars, and now shows the regular ones that are in e.g. Firefox. Kepler had them.

Since Eclipse UI is cluttered already, I would like to turn them back on, how can that be done?

jcora
  • 920
  • 1
  • 13
  • 37

2 Answers2

3

If you're using Ubuntu 12.04 or 14.04, you need to start Eclipse with an env var to force overlay scrollbars:

env LIBOVERLAY_SCROLLBAR=1 eclipse

As I'm using a downloaded Eclipse (and not the one provided by apt), I've created a Eclipse.desktop file (under ~/.local/share/applications/) with the following content (remember to replace <path_to_eclipse_folder> by your path to Eclipse:

#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Type=Application
Name=Eclipse
Comment=Integrated IDE
Icon=eclipse.png
Exec=env LIBOVERLAY_SCROLLBAR=1 /<path_to_eclipse_folder>/eclipse
Categories=Application;Development;Java;PHP;IDE;
Type=Application
Terminal=false
0

This works on Eclipse Neon

gksudo gedit /usr/share/applications/eclipse.desktop

Then copy and paste this, make sure to point to your eclipse in /opt/

[Desktop Entry]
Name=Eclipse 4
Type=Application
Exec=env UBUNTU_MENUPROXY=0 SWT_GTK3=0 /opt/eclipse/eclipse
Terminal=false
Icon=/opt/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=Eclipse NEON
ad3luc
  • 224