Problem:
I try to explain the problem I am having with Eclipse: Well, as shown in my attached screenshot all Icons seems to be enabled. But normally some Icons are disabled. For Example: When the Debugger is in running, you cannot press the resume button, but the resume button and the Stop button appear like an enabled button. Nevertheless just one of them is clickable.
So in summary eclipses logic behind the Icons is working, but eclipse does not change the visual style of a button, when it is disabled (not clickable).
Question:
Does anybody know how to force eclipse to show an disabled icon, when the button is disabled and an enabled icon, when the button is enabled?
Further information:
- Eclipse Version: Eclipse Neon
- Ubuntu Version: Ubuntu 16.04 LTS
- Java Version: Java 8 (openjdk)
What I have already tried to do:
I tried using Eclipse Mars. But is has the same behavior than Neon.
I tried using Eclipse Luna. This works pretty fine. All siabled buttons are grayed out.
I reported this bug to eclipse: https://bugs.eclipse.org/bugs/show_bug.cgi?id=501878
This problem is caused by the use of GTK3 in newer ubuntu versions with SWT programs.
You can set a flag in your .profile to make SWT Programms like Eclipse use GTK2 for now.
.profile
file, located in your home folder.export SWT_GTK3=0
to the end of the file.your file should now look similar to this (that is actually my .profile file):
If you start Eclipse now, you can see disabled icons greyed out.
Happy coding.