Community
Participate
Working Groups
Build Identifier: 20100917-0705 A tooltip is opened with a calculated preferred size in a java editor after moving the mouse cursor over e.g. a method declaration. Unfortunately, this size is usually too small and has to be resized each time which is really annoying. It will be useful to have an option like "Remember Size". This feature has already been implemented in Quick Type Hierarchy. It is possible to enable "Remember Size" and "Remember Location" there. Additional information commandId: org.eclipse.ui.edit.text.showInformation keyBinding: F2 name: show tooltip description Reproducible: Always Steps to Reproduce: 1. Move the mouse cursor over a method declaration in a Java source file. 2. Resize the tooltip. 3. Move the mouse cursor over another method declaration in a Java source file. 4. Tooltip size is restored.
(In reply to comment #0) > 4. Tooltip size is restored. 4. Tooltip size has been reset.
In contrast to the Quick Type Hierarchy, we try to make the Javadoc hovers as small as possible initially (so that they show all contents but don't contain unnecessary white space). Therefore, the Javadoc hover size can only be a "Preferred maximum size". Since the hovers don't always start with the same size, and since you can move the mouse into the hovers and quickly resize them depending on how much you want to see of a specific hover, I think the best strategy is not a general "Remember size" mode, but an explicit "Remember as maximum size" action. That way, you can still resize the hovers dynamically without affecting the stored maximum. If you feel like you need to resize them all the time, the action would allow you to store a maximum size explicitly.
This is ok for me.