Keyboard shortcuts in Eclipse Oxygen - eclipse

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.

Related

Eclipse (4.14.0), changing the editor background colour

I had set the theme to Dark, and changed the editor background/foreground colours, but it did not work (only changed the line number background). So, I searched the web and found the existing question. But the answer was saying the same thing that I already had done.
Is the method changed? Why can't I set the editor background to complete black and the text to complete white?
This worked for me:
1. Launch Eclipse
2. Click on Help
3. Select Eclipse Marketplace
4. Open Popular tab
5. Select and install "Darkest Dark Theme with DevStyle CI 2019.9.16"
6. Wait for it to finish installation
7. Restart Eclipse
At this stage, eclipse should restart with options to tweak background colour to your desired theme
There seems to be a recent Eclipse bug.
There is a possibly duplicate question here which has at least one additional suggested workaround besides the other answer to this question.
For anyone still looking for this known bug in eclipse -> install the plugin that James Kufre mentioned, right know there is another version called:
Darkest Dark Theme with DevStyle 2022.6.13a.
This plugin fixes the bug. You can then basically choose the complete color scheme of eclipse. So not only the editor field, but also the menus and everything!

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.

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

Eclipse Luna : losing hotkeys and getting back with focus change

I have seen some questions about eclipse hotkeys, but not exactly like mine :
I have very weird behaviour with eclipse Luna :
I am typing some text in the editor window, and suddenly, all the hotkeys are not working anymore ( ctrl-s ctrl-z ctrl-f etc...).
Nevertheless,the keyboard is still working, I can enter some more text, use arrow keys : nothing tells I have lost the focus in the editor window.
I just click in a side view window to lose focus in the editor,
and click again in editor window to get the focus back, and that's it : the hotkeys are back.
I was using eclipse Keppler before Luna, there were not such a behaviour with Keppler.
As I am losing the hotkeys every minute, I really need to solve this problem : any idea ?
NOTE : I am using ubuntu 12.04 (gnome)
After one year I think I may have found how to fix it ...
I have a 12.04 precise with latest kernel (3.2.0-80-generic) and unity and with gnome compatibility settings enabled as well.
Compiz
I started to look at the Compiz Config Setting Manager
Disable The Workaround
As Eclipse is written in Java I found that maybe disabling fixes related to it could help.
From the CompizConfig Settings Manager go to Utility->Workarounds and disable:
Java Window Fix
Java Taskbar Fix
I actually have disable all the workaround and not just those. I restarted Eclipse and it seems now to work. (NOTE: I believe you may have Compiz running even if you don't use unity)
Result
I do not have to unfocus or refocus. It seems to work pretty well. Interleaving ctrl-s, ctrl-z and ctrl-f works fine. (but I just tested few minutes, the system is unstable so I opted for another solution, see below)
Final Solution for me
I login with gnome classic without 3D effect
Workaroud I actually use:
GDK_CORE_DEVICE_EVENTS=1 ./eclipse
I don't know how long would it be work.

How to change the color styles in 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.