Community
Participate
Working Groups
StyledCellLabelProvider.COLORS_ON_SELECTION should be enabled by default on some platforms. E.g. on the Mac and on Windows Vista, the selection foreground color is always the same as the unselected text foreground color, and text ranges that have a custom color keep this color even when selected (do Select All in a Java editor to see this). StyledCellLabelProvider should imitate the platform behavior by default. The platform behavior could probably be determined by comparing the rgb values of SWT.COLOR_LIST_FOREGROUND and SWT.COLOR_LIST_SELECTION_TEXT.
Created attachment 93471 [details] A possible fix
Steve, I have the 'no colors on selected items' opinion from you. Do you think 'colors on selected items on some platforms' make sense? Should we make it a configurable option?
Making it configurable gives you a way out if there is a problem. The down side is increasing the number of preferences. Also, colors can change when the user changes themes so you'd either have to listen for settings changes or better, test the colors every time and decide on the fly.
Hitesh is now responsible for watching bugs in the [Viewers] component area.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.