Eclipse Javadoc Background Overrides Default - java

My default workspace on Eclipse set the Javadoc Background color to black and it is impossible to read the text:
Javadoc black background
I have already tried to "restore defaults" at Window -> Preferences -> General -> Appearance -> Colors and Fonts, but it works until I close the workspace. Next time I open it again, the problem returns:
Preferences Javadoc Background overrides default
I have tried to find the file inside workspace\.metadata\.plugins folder that set this configuration, but I didn't find. I also tried to find other solutions, but I only found solutions for Ubuntu OS, and I am on Windows 7 with an Oxygen.3A Eclipse.
Has anyone faced this problem?
Thanks in advance.
PS1.: New workspaces comes without the error.
PS2.: I work with lots of workspaces at work, so creating new ones is not an option, because it will take hours to reorganize them.

I solved this problem on Eclipse 2018-12 by changing to a theme other than "Classic." Once I did that and restarted Eclipse, it looked like it should.
Preferences->General->Appearance.
Make sure Enable theming is checked.
Select a different theme from Classic and restart Eclipse.

Since you lose your current workspace setting for background color whenever you reopen the workspace perhaps Oomph has stored a configuration setting for background color for that workspace (black in your case), and that is being used on startup to override your most recent setting.
To resolve:
Select Window > Preferences > Oomph > Setup Tasks > Preference Recorder
Check Record into and select Workspace from the droplist.
Enter Javadoc.backgroundColor in the search field and then check the entry that is listed, so that your screen looks like this:
Click Apply and Close.
Select Window > Preferences > General > Appearance > Color and Fonts, select Java > Javadoc background and then click Edit... to choose the background color you want.
Click Apply and Close then restart Eclipse. After restarting you should see that your most recent color change is still being used.
Optionally, uncheck Record into so that Oomph doesn't record further configuration changes.
(I am not confident that this is necessarily the solution because it implies that someone had previously set the Javadoc background color to black as part of the Oomph configuration for the workspace, and that is not easy to do unintentionally.)

Related

Eclipse keep file highlighted

I just migrated from Eclipse 2019-06 to Eclipse 2021-03, and there's a difference that's driving me crazy, and I don't know how to have the same behavior as before.
When I lose focus in the Project Explorer view, I'm unable to view the highlighted file as before.
NOTE: What I'm looking for is not the way to show the current file (present in the editor) linked against the Project Explorer. It's just the way to keep the file that I selected in Project Explorer highlighted when it looses focus.
The theme you are using is responsible for this behavior:
In the Light theme + Default color scheme, when the focus in on the Package Explorer:
When it is on the editor:
As setting the theme to Dark litterally froze my Eclipse, I can only give you those insight on what to do:
Check in the General > Color. You could for example change the background color to some visible one (yellow, green, ...) until you see a change in the unfocused Package Explorer. Once done, you can restore default colors and only set it on the part that needs change.
If you use some plugin that provide more themes, check with those themes.
Use Light theme !

Eclipse doesn't suggest a class that needs to be imported later

I don't know if this is a bug or it's just how it's supposed to be، but whenever I try to type a class like the class random, in eclipse it doesn't give me a suggestion for it. Even when I press Ctrl + Space.
PS: However eclipse does tell me to import the class when I hover the mouse over it.
First thing to try is cleaning your projects via top menus: Project > Clean
note: pressing Ctrl+Space multiple times will cycle through different content assist proposals. Also Ctrl+1 will bring up the quick fixes dialog for errors on your current cursor's line.
I had a similar issue recently, go to:
Window > Preferences then Java > Editor > Content Assist > Advanced
In there I unchecked all the boxes and clicked Apply at the bottom. Then turned on the same options I had just disabled and clicked Apply again and that fixed it.

How to enable quick fix in eclipse

How to enable quick fix while hover over error in eclipse?
Currently it looks like this, so I can't import by using this popup
So, I want it to be like this:
I already restarted few times my eclipse, also I followed instructions how to check: Windows > Preferences > Java > Editor > Content Assist > Advanced
But nothing helped...
So, the point is how to enable quick fix just by hovering over the error, I don-t want't to use Ctrl+1 or Edit > Quick Fix every time.
I am a beginner so I don't know whether it might help or not
I had the similar problem
I wanted to see the quick fix available when the cursor is on the error(red line)
(underlined blue words so that I can click and quickly fix or change what is necessary)
The problem was the something I installed from eclipse marketplace("dark theme devStyle")
I didn't know how to change the background color and I thought I needed that dark theme devStyle to change color. So I simply unintalled it and the problem solved. Also I deleted the metadata folder in the workspace to make a default setting.
I had a similar issue after installing Dark theme devstyle from eclipse market place.
The solution for me was to power off my PC and turn it back on again and It worked.

Eclipse resetting some "Colors and Fonts" theme of javadoc to black on restart

I'm having an issue with Eclipse resetting my javadoc background & text color from Window > Preferences > General > Apperance > Colors and Fonts to black everytime I restart it. I disabled automatic Oomph startup tasks without any luck.
I also tried reinstalling the same version of Eclipse (Oxygen 1, 4.7.0), installing the next version (Photon, 4.8.0), resetting workspace.
Also, it may be because I'm using Darkest Dark theme, but I'm not sure.
Surprisingly, after tinkering with settings, I noticed that if I changed the color (like add 1 blue to it), just so it wouldn't be the default one, it wouldn't reset it. So like instead of 0xFFFFFF, I would set it to 0xFFFFFE and that would magically solve the issue.

Eclipse Not Showing Errors on Lefthand Side

So I've been using Eclipse on my mac for the past 4 months with no problems but suddenly things are acting up. Before, Eclipse would show me a red dot on the lefthand scroll bar when I was working on a class in a project. Now, for some reason, all it does is grey-out that line number but it does not show me that dot like it used to. I've tried restarting both Eclipse and my computer, I've tried working on different projects and classes, I've made sure a project builder is selected, and I've checked that the "show errors" options are all checked. I do not like having to have another window open to see exactly where all my errors are; I preferred just having the red section on my class screen. Any other suggestions?
Thanks everyone!
You could try looking here: Error indicators in file margin in eclipse indigo
Open Preferences, select General/Editors/Text editors/Annotations, and make sure that the errors/warnings are selected to be displayed in the Vertical and Overview rulers.
or
Figured it out, if you go to system preferences > general > click the "when scrolling" button, to only show the scroll bar when scrolling it fixes it. Mine was previously on "always". I restarted eclipse and it shows the errors/warning message etc now.'

Categories