Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 10135

Summary: [preferences] Should be able to set the colors of the Selection.
Product: [Eclipse Project] JDT Reporter: David Corbin <dcorbin>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: duraid, rick.goldstein, Tod_Creasey
Version: 2.0Keywords: accessibility
Target Milestone: 3.0 M9   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 28993    
Bug Blocks:    

Description David Corbin CLA 2002-02-22 22:19:58 EST
I use a black background. The dark blue is selection is very hard to see.  I
would like to be able to set the background and foreground color used for
showing selected text.
Comment 1 Erich Gamma CLA 2002-05-09 15:40:38 EDT
As far as I understand there is no StyledText widget support to do so.
Moving to SWT for confirmation.
Comment 2 Mike Wilson CLA 2002-05-09 16:01:12 EDT
The selection background should be the standard selection background for the 
platform. I just tried this on win32 and changing the color via the display 
properties causes the selection color in an open StyledText to change.

There is no API for setting the default selection color from within Eclipse. 
Note that, StyledText could be coded to support an arbitrary selection color 
which defaulted to the system default (sic).
Comment 3 David Corbin CLA 2002-05-09 16:10:02 EDT
In the short term, the user shouldn't be allowed to set the background to the
same as the selection, or at least provide a warning.
Comment 4 Veronika Irvine CLA 2002-09-11 14:07:53 EDT
Moving from Later.
Comment 5 Rick Goldstein CLA 2002-12-27 16:39:22 EST
Hi.  Just curious to know if the GUI for this is planned any time soon.  The 
necessary SWT API has apparently been available for some time (see 10050 and 
related), but the GUI for selecting colors for the Java and other editors does 
not appear to be there.  Thanks.
Comment 6 Steve Northover CLA 2003-01-02 15:42:57 EST
Moving to JDT UI.  See StyledText.set/getSelectionForeground() and 
StyledText.set/getSelectionBackground().
Comment 7 Duraid Madina CLA 2003-08-14 07:51:56 EDT
any progress on this one? my eyes, my eyes!!! :(
Comment 8 Dani Megert CLA 2003-08-15 07:46:58 EDT
Pumping up prio. This is an accessibility issue.
Comment 9 Dani Megert CLA 2004-04-14 10:10:38 EDT
Released Christof's patch.
Available in builds > 20040414
Comment 10 Tod Creasey CLA 2004-05-20 11:01:53 EDT
Verified using High Contrast in 20040520