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

Bug 97747

Summary: Unreadable text in code assist windows
Product: [Eclipse Project] JDT Reporter: Patrick Turley <pturley>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: shujie_liao, Tod_Creasey
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Patrick Turley CLA 2005-05-31 17:24:02 EDT
I'm currently using the CDT, but I've seen this with the Java stuff as well.

I like to have a black background with colorful text highlighting. For this
reason, I'm EXTREMELY happy with the changes that enabled me to set the global
background color to something other than the system default.

I was just now hovering my cursor over a global variable, and the CDT was trying
to tell me something about it in a hover window. The hover windows seem to
always have a manila background. Sometimes I can see stuff scrawled in them -
and sometimes all I see is a manila rectangle.

My best guess about what's happening is that the hover code was written with the
expectation that the default colors are a dark foreground on a light background.
In my case, however, I've reversed that. So, it ends up drawing light text on a
manila background - which is essentially invisible.

It appears that this is not a problem with the hover windows that show me the
contents of FOLDED text. I can see the contents of those hover windows fine. So,
whatever is going wrong seems to be handled differently in those two cases.

I know nothing of the Eclipse implementation details. However, if I were to
GUESS about what should be done to fix this... I would GUESS that I need another
system option that enables me to choose a background color for hovers. Or,
perhaps all sorts of hovers need to be doing whatever it is that the folding
hover is doing. I dunno.
Comment 1 Patrick Turley CLA 2005-07-29 17:01:38 EDT
I noticed this same problem in the code-assist template windows that pop up. I
typed:

    for

and hit ctrl-space. The associated code as essentially impossible to read.

FYI - IntelliJ fixes this problem by painting the hover background with the
color you use to highlight the line that contains the cursor. I think that's the
"correct" solution.
Comment 2 Tod Creasey CLA 2005-08-02 07:48:58 EDT
Code assist is supplied by JDT. Having said that we are hoping to have a more
general solution to this in 3.2 that JDT can just go ahead and use. Adding
SHukie and myself to the cc as we are looking into this.
Comment 3 Dani Megert CLA 2005-08-04 06:00:46 EDT

*** This bug has been marked as a duplicate of 41867 ***
Comment 4 Patrick Turley CLA 2006-04-27 10:29:13 EDT
Duplicate.