Bug 399414 - Remove the text hover tooltip when no documentation is available.
Summary: Remove the text hover tooltip when no documentation is available.
Status: NEW
Alias: None
Product: DLTK
Classification: Technology
Component: Common (show other bugs)
Version: 4.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: dltk.common-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-29 13:06 EST by Marc Aubry CLA
Modified: 2013-01-30 09:33 EST (History)
2 users (show)

See Also:


Attachments
screen of the tooltip to remove (6.76 KB, image/png)
2013-01-29 13:06 EST, Marc Aubry CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Aubry CLA 2013-01-29 13:06:50 EST
Created attachment 226276 [details]
screen of the tooltip to remove

Displaying a tooltip with no information is quite useless, maybe it's better to do nothing.

See attached screenshoot.

The source code to modify is:
org.eclipse.dltk.internal.ui.text.hover.DocumentationHover.getHoverInfo(String, Object[]):464

I can also provide a patch for this bug if needed.

Marc Aubry
Comment 1 Alex Panchenko CLA 2013-01-29 13:31:29 EST
Hi Marc,

Empty tooltip is not that useful, I agree.
For me, current DLTK also displays element icon and name.
I think "no documentation" hint can be removed, keeping only element icon+name, like JDT does.
Makes sense?

Regards,
Alex
Comment 2 Marc Aubry CLA 2013-01-30 09:33:15 EST
Hi Alex,

Thanks for your quick response.

In JDT the tooltip show the scope, the visibility and the type of the hovered item. But in dynamic languages, there is no type, ans it's difficult to know the visibility and/or scope of a variable because of globals.

So for example, if we have a local variable in Lua defined like this.
local var

The hover will display "local var" as well.

So for me, this is not that interesting, until we have more information to put in the tooltip.