Reputation: 14054
When you hover over a error in the source editor from within Eclipse, it will show a little overlay suggesting how to fix it. This is terribly useful for importing classes, and I use it for this quite a lot. However, on Linux the colour scheme is horrendous, its thin blue writing on a dark grey background, and its borderline impossible to read.
How can I fix this from within eclipse? All "solutions" I seen so far to this problem, involves modifying your gtk theme. Which is a bit ridiculous (why would I break everything else to fix one faulty program).
Upvotes: 2
Views: 510
Reputation: 14054
I've finally found a solution to this, and I reckon I will post it here in-case other people might find it useful.
I created a custom gtkrc file, containing the following
style "eclipse-tooltips"
{
xthickness = 8
ythickness = 4
bg[NORMAL] = {0.8, 0.8, 0.8}
fg[NORMAL] = {0.0, 0.0, 0.0}
bg[SELECTED] = {0.8, 0.8, 0.8}
}
widget "gtk-tooltip*" style "eclipse-tooltips"
and then started eclipse using
GTK2_RC_FILES=/path/to/custom/gtkrc eclipse
Upvotes: 1
Reputation: 16208
First suggestions - Use Ctrl-Shift-O
to insert the correct imports.
Then later, set On Save Actions
to automatically insert the correct imports. Then as you write new code, it Ctrl-S
, which will also automatically compile the code again and show you any compile issues! Very helpful.
Second - Use an Eclipse theme!
Upvotes: 1