Can't see suggestions in eclipse - java

Im having a problem with Eclipse. When error in code, I can't see suggestions in how to fix the error. The box that has this information is visible, not the text it self.
How can i fix this?

In Eclipse on the menubar go to:
Window > Preferences > General > Appearance > Colors and Fonts
Now select Content Assist foreground color in the list and click edit.
Select the color you want and that should fix your problem.
In the Appearance menu you can also reset your entire theme to fix any other issues with the button Restore Defaults.

Related

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

Installed dark theme in eclipse, but scrollbars is still grey

I am using Eclipse Luna(4.4.0) and trying to make it completely dark. So I Installed a theme plugin:
Eclipse menu -> Help -> Eclipse Marketplace, search "Eclipse Color Theme Plugin"
In “Windows Preferences”, selected the “Dark” theme and
Eclipse menu -> Window -> Preference -> General -> Appearance -> Color Theme,
choosed “sublime Text 2″. Done, I'm just changed everything to “Dark”.
But, scrollbars is still grey
Does anybody know how to make it dark too?
Thanks in advance!!
Eclipse's built in dark theme is very problematic.
Check out the DevStyle plugin from Eclipse marketplace. It creates dark themes up to par with other IDEs like IntelliJ.
https://marketplace.eclipse.org/content/darkest-dark-theme-devstyle
For all mac users out there, you can change it in system preferences:
Apple menu > System Preferences, then click General > Show scroll bars
Select “Automatically based on mouse or trackpad.” i voila :)
cmd+space
System Preferences
General
Show scroll bars: "When scrolling" (see screenshot)
In my opinion though, this isn't a great solution because you don't see the scroll bar sometimes and sometimes it still shows the bright grey scroll bar depending on where you put your mouse.
If you want to get rid of that scrollbar, enable Show whitespace characters in
Preferences > General > Editors > Text Editors

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