I recently upgraded Ubuntu to 18.04 and starting using Eclipse Photon (Fresh package).
When I hover over a class or a method to view it's Javadoc, and then click on the tooltip, the tooltip disappears. This didn't happen before and I've been using Eclipse and Ubuntu for many years.
This also happens while inspecing a variable. I expect the tooltips to stay visible as they used to before.
I attached 2 screencasts to demonstrate.
Clicking a javadoc tooltip
Clicking a variable inspection tooltip
Settings > Keyboard > [Input source switching] Choose "Use the same source for all windows"
Related
This is what the eclipse editor border hover is supposed to look like:
But someone messed around with our company eclipse preferences (and left the company). With our current settings the hover looks like this:
So you need to hover over the problem icon and then over again over the icon in the popup. That feels unwieldy.
Couldn't find something in the eclipse settings nor on google. Any idea how to change this setting back to the default behaviour?
Eclipse version: 2020-06 (4.16) (this problem occured in any version from Neon on where the colleague created the preferences with)
In Window > Preferences: Java > Editor > Hovers uncheck the checkbox Expand vertical ruler icons upon hovering (does not effect open editors) and close and reopen all open Java editor for that.
I am using Eclipse Oxygen (Ver 4.7.0) on CentOS with the UI shown via MobaXterm's X Windows server on Windows 7.
In Eclipse I have the weird problem that when I right-click on an editor tab the tab closes immediately! No context menu, nothing, just the tab vanishes. I would like to disable this, but I couldn't find any entry for right-clicking in the Keys section of the Preferences.
Is there another place where the right-click behaviour is set? Or how else can I disable this? The problem occurs only for editor tabs.
Additional details:
The right-click behaves correctly inside an editor tab by bringing up the context menu. This shows that the right-click is not genearlly broken in the X Window system.
The right-click behaves correctly in other X applications like PyCharm.
An explanation
A closer look revealed that Eclipse does show the context menu on right-click press-down, but on right-click release-up it registers a left-click event.
Due to the particular situation of when the context menu was drawn, the mouse pointer than just always happens to sit over the top entry in the menu. And this top entry is Close. The following screenshot might illustrate this a bit (unfortunately without the mouse pointer):
Solution
The immediate solution for me is to move the mouse after pressing the right mouse button and before releasing it.
Still I don't know why this happens only when right-clicking a tab and only for me - and probably not for many other people...
I'm using SonarLint 1.3 in Eclipse Mars. My problem is when there's an SonarLint issue it prevents every other tooltip from appearing.
Example: as you can see tooltip for Hashtable is not shown because of SonarLint hint.
Is there a way to show both Eclipse tooltips and SonarLint hints?
This is standard Eclipse behavior that problem marker tooltips will have higher priority than JDT Hover tooltips.
If you want to force JDT tooltips to be displayed it is possible using some keybord shortcuts. Look in Eclipse preferences for Java -> Editors -> Hovers
For example to see the Javadoc tooltip that is displayed on Hashtable when there is no SonarLint issue you should press Ctrl+Shift
Example:
The simplest solution I found is to "show view" javadoc. By doing this you will be able to see SonarLint tooltip and the code fragment-related javadoc in the javadoc view when you placed your cursor inside the code fragment. Yes, this is NOT actual "hovering", I know, but this is the only way I found so far.
I just swapped to eclipse Luna (4.4.1) from a previous version and I have a little problem I cant solve.
I don't know why but the class filter in editor window doesn't show the package name of the class you are hovering with the mouse (the alt text). It worked fine in previous versions of eclipse but I cant find any related in preferences.
I dont know if this is the acourate name for this part of the IDE so I show you a pic of what I'm trying to say. EDIT: This is the "Show List" drop-down
EDIT 2: Also happens on eclipse mars (4.5) with a new workspace.
Cant upload images yet
Tranks in advance!
I want to pin editor tabs
Is there any plugin for that ?
Visual Studio has this property.
This is a very old thread but in Eclipse 4.6.3 in order to get the pin icon in the toolbar you need to check the "close editors automatically" option (Preferences -> General -> Editors).
In Eclipse 4.4.0 there You'll find a pin symbol in the default toolbar of Eclipse on the right side.
After clicking it, the Java Editor Tab symbol gets changed indicating this editor is pinned now.
Unfortunatelly I could not find a corresponding entry in the popup menu.
But it is easy to assign e.g. the keys Ctrl-P to "Pin Editor" in the key bindings of Eclipse. (Don't forget to unbind Ctr-P = Print)
Update August 2016: In Eclipse Neon 4.6.0 Pin is not functioning as I can see, no symbol indicating a pinned editor/tab.
Try this eclipse plugin.
Animated example.
Its not working on Linux. If you are using Windows then this may help.