Community
Participate
Working Groups
Created attachment 277712 [details] selected-text.png I use Ubuntu MATE 18.04. I upgraded Eclipse JEE IDE to version 2018-12-R, I struggle with text selection in editors (e.g. Java or XML). The selection is not highlighted with a background color. I use the default theme - Light/Default. IIRC I had the same problem with the previous version (JEE Photon R), but I was able to workaround it by switching to GTK 2 in eclipse.ini: --launcher.GTK_version 2 This workaround doesn't work anymore with 2018-12-R so I would need a GTK 3 solution. I've also tried to switch to Classic/Classic Theme, but the behavior doesn't change.
Created attachment 277713 [details] without-selection.png
Created attachment 277714 [details] default-preferences.png
Is the bug reproducible with a different GTK theme? I.e. try the default Ubuntu theme (Ambiance) or the default GTK theme Adwaita.
I use default MATE theme Ambiant-MATE. The background color for selected text seems to work in some MATE themes: * BlackMATE * BlueMenta * GreenLaguna * Menta * TraditionalGreen * TraditionalOk Other themes have the same problem as the default theme: * Ambiant-MATE-Dark * Blue-Submarine * Green-Submarine * Radiant-MATE
(In reply to Josef Cacek from comment #4) > I use default MATE theme Ambiant-MATE. > > The background color for selected text seems to work in some MATE themes: > * BlackMATE > * BlueMenta > * GreenLaguna > * Menta > * TraditionalGreen > * TraditionalOk > > Other themes have the same problem as the default theme: > * Ambiant-MATE-Dark > * Blue-Submarine > * Green-Submarine > * Radiant-MATE This is a theming issue -- SWT loads all system colors from the current GTK theme. It looks like the default MATE theme is missing something that the others are not.
Could you point me to a location where the scheme is loaded into Eclipse so I could debug what's wrong there? Thanks.
(In reply to Josef Cacek from comment #6) > Could you point me to a location where the scheme is loaded into Eclipse so > I could debug what's wrong there? > > Thanks. Sure, the system colors are initialized in Display.initializeSystemColors(). The color which controls the selection backgrounds for text editors is COLOR_LIST_SELECTION.
*** This bug has been marked as a duplicate of bug 542469 ***