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 236249 - Patch for: HyperlinkProviderExt.getTooltipText() is always called with the start not with the offset as described in the API doc
Summary: Patch for: HyperlinkProviderExt.getTooltipText() is always called with the st...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords: PATCH_AVAILABLE
Depends on:
Blocks:
 
Reported: 2013-09-22 21:27 UTC by markiewb
Modified: 2013-10-04 01:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Proposed patch (1.96 KB, patch)
2013-09-22 21:29 UTC, markiewb
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2013-09-22 21:27:01 UTC
Regarding to the documentation in [1] HyperlinkProviderExt.getTooltipText() should be invoked using the current offset at the cursor. 

ACTUAL:
It is always the start offset of span. Which is in mismatch to the JavaDoc.
EXPECTED:
It has be the current offset at the cursor.


[1] http://bits.netbeans.org/dev/javadoc/org-netbeans-modules-editor-lib/org/netbeans/lib/editor/hyperlink/spi/HyperlinkProviderExt.html#getTooltipText(javax.swing.text.Document, int, org.netbeans.lib.editor.hyperlink.spi.HyperlinkType)
Comment 1 markiewb 2013-09-22 21:29:07 UTC
Created attachment 140358 [details]
Proposed patch

I like to propose a patch to solve this issue. Please review and commit! Thank you.
Comment 2 Milutin Kristofic 2013-10-02 12:42:10 UTC
Thank you, I push it into trunk. http://hg.netbeans.org/jet-main/rev/273700790909
Comment 3 Quality Engineering 2013-10-04 01:32:25 UTC
Integrated into 'main-silver', will be available in build *201310040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/273700790909
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #236249 - Patch for: HyperlinkProviderExt.getTooltipText() is always called with the start not with the offset as described in the API doc - provided by markiewb