Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 331344

Summary: [hovering] Remember preferred maximum size for Show Tooltip Description
Product: [Eclipse Project] JDT Reporter: Björn Michael <b.michael>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P5 CC: daniel_megert, markus.kell.r
Version: 3.6.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: fix candidate

Description Björn Michael CLA 2010-11-29 09:36:59 EST
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.
Comment 1 Björn Michael CLA 2010-11-29 09:41:53 EST
(In reply to comment #0)
> 4. Tooltip size is restored.

4. Tooltip size has been reset.
Comment 2 Markus Keller CLA 2011-03-04 12:56:30 EST
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.
Comment 3 Björn Michael CLA 2011-03-04 14:09:31 EST
This is ok for me.