This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 124512

Summary: Highlights-based tooltips do not work when no "Tooltips" folder
Product: editor Reporter: Jan Lahoda <jlahoda>
Component: Painting & PrintingAssignee: issues@editor <issues>
Status: RESOLVED FIXED    
Severity: blocker Keywords: SIMPLEFIX
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Possible fix.

Description Jan Lahoda 2007-12-29 21:16:51 UTC
[recent sources]

If there is no "Editors/<mime-type>/Tooltips" folder defined for the currently edited file, the highlights-based
tooltips (EditorStyleConstants.Tooltip) do not work. The reason is that method
org.netbeans.modules.editor.NbToolTip.getTipAnnotations returns null when the "Tooltips" folder does not exists, and
tooltips resolution is then skipped on NbToolTip:229.

I am attaching a possible patch.
Comment 1 Jan Lahoda 2007-12-29 21:18:09 UTC
Created attachment 54563 [details]
Possible fix.
Comment 2 Vitezslav Stejskal 2008-01-02 13:28:38 UTC
Thanks for the patch.
Comment 3 Vitezslav Stejskal 2008-02-20 15:24:03 UTC
Patch applied. Thanks

changeset 95878f101e96 in main
details: http://hg.netbeans.org/main?cmd=changeset;node=95878f101e96