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 - Highlights-based tooltips do not work when no "Tooltips" folder
Summary: Highlights-based tooltips do not work when no "Tooltips" folder
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2007-12-29 21:16 UTC by Jan Lahoda
Modified: 2008-02-20 15:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Possible fix. (7.89 KB, patch)
2007-12-29 21:18 UTC, Jan Lahoda
Details | Diff

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