How to change the color styles in eclipse - eclipse

I am using eclipse JUNO.
When the cursor goes over the variable name (in resource and debug perspective) the details of the variable name in displayed in a small window like a box..How to change the color of the window and its details..
In my case the color is actually in black background and white foreground.

Are you using Eclipse on Ubuntu? There this seems to be a common problem caused by default color settings of the operating system.
https://askubuntu.com/questions/70599/how-to-change-tooltip-background-color-in-unity
https://askubuntu.com/questions/1620/how-to-fix-unreadable-tooltips-in-eclipse-helios
https://askubuntu.com/questions/45001/how-to-fix-black-tooltips-in-eclipse

I've tried Juno and the problem is still there. I believe it is a bug in Eclipse: unchecking "System Default" in Java > Editor > Source Hover background has no effect. Eclipse continues to use the system-provided colors even when changing the settings.
This seems to be a long-standing problem with Eclipse developers blaming Ubuntu.

Related

How to edit Javadoc popup link color in Eclipse

I am using the Dark theme in Eclipse Oxygen. When I hover over a class to view the Javadoc, the links are in blue and very hard to see
I have tried editing the hyperlink color in Preferences -> General -> Appearance -> Colors and Fonts -> Basic -> Hyperlink text color but that didn't work. Under the Java section in Colors and Fonts there is an entry to edit Javadoc background and Javadoc text color, but I see nothing for Javadoc hyperlink color or something like that. I could change the background color as a workaround but that breaks the dark theme and I'd rather not.
The short answer is you can't because it's system dependent.
Among the many other ongoing dark-theme bugs that need to be fixed, the particular bug you've found has been recently reported here as bug 517393. The target fix for this bug is in Eclipse Photon (4.8) Milestone 2.
I've figured out a workaround for this issue at least for Windows.
On Windows, Eclipse's html renderer follows Internet Explorer's option for changing color of webpage. So, if you do not use Internet Explorer or just do not mind such change of all webpage, let's go!
Please note that some desciption below may not be accurate since I do not use an English version of Windows.
Open IE, click GEAR icon at top right corner - choose Internet Optioin - click Color at the bottom - uncheck Use Windows Color - change the color of Visited and Unvisited, and the rest two to suit your need if you use dark theme in Eclipse. Apply the change.
Then click Accessibility (on the right of Font) - check Omit Color - Apply the change.
It's done.
For those who are like me still stuck with an older Eclipse IDE like 4.7.3 (without the fix of the bug mentioned in the first answer) and are using Windows:
The workaround in the previous answer does not work if you have Microsoft Edge installed instead of Internet Explorer. Reason: Microsoft Edge does not let you change the link color. There are Chrome Extension that you can install but this didn't work for me either.
Another solution could be to switch Windows to "High contrast mode". Someone even managed to change the link color for Eclipse. I accidently found this "temporary" workaround:
Start Eclipse
Activate Windows "High contrast mode"
Eclipse wants to be restarted. Say yes.
Deactivate Windows "High contrast mode"
Again, Eclipse wants to be restarted. Again, say yes.
Now the Javadoc popup looks like in "Light" theme!? So links are very easy to see now.
However, that's not a really comfortable workaround: it needs some time and you have to repeat these steps after every reboot. My "favorite workaround" for now, is to select the link text in the Javadoc popup with the mouse, so that the link text is displayed with a more readable background/foreground color combination.

Keyboard shortcuts in Eclipse Oxygen

I was working in Eclipse yesterday, when my keyboard shortcuts stopped working. They all worked until yesterday. Pressing Ctrl+Shift causes a popup saying the cursor does not (yet) have a detectable image. Ctrl works fine, and so does Shift + a letter. Only Ctrl+Shift+any key causes this error. Even just pressing Ctrl+Shift by itself causes the popup:
I use Eclipse with the Darkest Dark Theme plug-in on Windows 10.
What is causing this error, and how can I fix it? Thanks in advance.
As has been mentioned by Howlger, yes, Darkest Dark's Icon Designer uses Control-Shift when hovering over an icon to allow you to find the icon that you wish to tailor. This listener only activates if you have the view in your workspace, and I believe only if you have brought the view to the foreground. That said, we have a change in the next release to explicitly allow you to opt-in to using Control-Shift to find an icon.
Screenshot of explicit opt-in
This doesn't specifically have anything to do with open source or otherwise - simply the software behaving as designed
Try to uninstall the Darkest Dark Theme plug-in.
This closed source plug-in does load-time weaving to patch Java bytecode of the Eclipse platform (for legal reasons, to not have to publish their changes). In contrast of using a public API, load-time weaving patches have to be adapted for each (new) Eclipse version: an error in the plug-in can cause strange behavior of the Eclipse platform.

Eclipse Text Editor text is highlighted in green?

I am experiencing a weird issue. My Eclipse editor is all green as shown in this photo here:
It's very strange because every time I restart my computer I still have this issue. Furthermore, when I check Preferences -> Restore Defaults, the issue is not fixed as my text editor settings are all set to default. Eclipse doesn't seem to say if there are any errors and I am not sure why this is happening. Any ideas on how to fix this?
I think you installed EditBox plugin. Either uninstall this plugin or disable it.
Check these posts
How to change color of Editor in Eclipse
Eclipse Background Color will not change OSX, Pydev
Remove code block highlighting from Eclipse

Change annotation background colors in eclipse?

So in eclipse whenever there is an error it's underlined in red, and when you hover over it is displays an annotation with tips on how to fix the error. On my Windows OS it is correct and the background is a tanish color but on Ubuntu the background is black and I want it tanish like Windows. I know there is an annotation area under Preferences > General > Editors > Text Editors > Annotations, but I don't see a section to change background colors. Please help.
Oddly, colors and fonts are very poorly implemented in Eclipse. Quite a number of things are either extremely difficult to figure out or impossible. Looks like this one is impossible to modify. Perhaps there's an OS way to make those changes?
That said, I found an Eclipse plugin, Annotions Ruler Background. It looks like it should do the trick, but was designed for Indigo (3.7) and doesn't seem to work on Juno (4.2). Sigh.
You can install it from the usual way in Eclipse (help->eclipse marketplace->search, etc.). Their website is here.
If you're still on Indigo, give it a try.
I find this page, it works. http://ubuntu-user-tricks.blogspot.tw/2012/09/3-things-to-do-after-installing-eclipse.html
It change the theme tooltip background color, and foreground color if need.
You can install tool gnome-color-chooser or modify the configure directly (default at /usr/share/themes/Ambiance/gtk-2.0/gtkrc). If After you modify the theme configure, you need reload theme to use new config.

How do I change the color of text displayed in the Spring STS Roo Shell?

I have a requirement to use Spring STS with a black background and green text.
Unfortunately the color of text in the Roo Shell is a dark greeny/blue color, making it almost impossible for me to see against the black background.
Is there a way of changing the text color in the Roo Shell?
I've looked through the STS/Eclipse preferences and can't find anything. I really hope it hasn't been hard coded. If there's no setting in the STS Preferences, is there a property file somewhere where I can set it?
I am using STS Version: 2.6.1.RELEASE
Thanks in advance
You don't have to use STS. You can just run it from the command line. I happen to have mine as green text with black background, because that is what my terminals display.
If that isn't helpful, what OS are you using?
I found that the colour of some window displays in Eclipse were controlled by the themes in my Ubuntu system. I just found the right one and changed the theme. (STS being based on Eclipse it may be the same)
It is not possible yet to configure the background and text colors of the Roo Shell in SpringSource Tool Suite.
It has been added as a bug by a member of the SpringSource team to be fixed in STS v2.8.0.M1.
See - https://issuetracker.springsource.com/browse/STS-1894