Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331344 - [hovering] Remember preferred maximum size for Show Tooltip Description
Summary: [hovering] Remember preferred maximum size for Show Tooltip Description
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.6.1   Edit
Hardware: All All
: P5 enhancement with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard: fix candidate
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-29 09:36 EST by Björn Michael CLA
Modified: 2011-03-07 12:26 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.