victoraugustofd
victoraugustofd

Reputation: 63

Eclipse Javadoc Background Overrides Default

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.

Upvotes: 4

Views: 999

Answers (2)

Halfstop
Halfstop

Reputation: 1772

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.

Upvotes: 5

skomisa
skomisa

Reputation: 17343

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:

OomphSetting

  • 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.)

Upvotes: 0

Related Questions