If you are using Grep Console with Eclipse Mars on a Linux system, you might have faced a strange issue: In certain versions of GTK, the Manage Expressions dialogue is empty – or rather, it shows the tree node expansion icons and the icons for enabling the individual expressions, but the labels and colour preview boxes are gone.
The reason for this is that with Eclipse Mars, SWT has switched from using GTK2 to using GTK3 by default. The GTK3 implementation of SWT still has some problems though, and one of them seems to be that the paint() method of an OwnerDrawLabelProvider is never called on some systems.
I’ve been able to reproduce this issue with Ubuntu 14.10, which uses libgtk3 3.12.2. The labels and icons do show up for me in Ubuntu 15.04 (with libgtk3 3.14.13), though there are some scaling issues there.
I’ve filed a bug report in the official Eclipse bug tracker. In the mean time, the best workaround is to tell Eclipse to use libgtk2. In fact, this may fix some other graphics issues as well. Andrey Loskutov describes how to do this:
Either call Eclipse with the shell variable SWT_GTK3 set to 0, e.g. like this:
Or change your eclipse.ini by adding two lines:
Thanks to Florian Weitling and Marco for reporting this issue.