Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 322129

Summary: "Unknown Hyperlink" if more than one hyperlink available
Product: [Tools] CDT Reporter: Marko Tomljenovic <marko.tomljenovic>
Component: cdt-editorAssignee: Anton Leherbauer <aleherb+eclipse>
Status: RESOLVED FIXED QA Contact: Anton Leherbauer <aleherb+eclipse>
Severity: normal    
Priority: P3    
Version: 6.0.2   
Target Milestone: 7.0.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Marko Tomljenovic CLA 2010-08-09 08:48:41 EDT
Build Identifier: CDT 6.0.2

We have implemented a hyper link provider so that more than hyperlink is available when pressing Ctrl and hovering over a c element.

Now the hyperlink provided by CDT is always showing "Unknown Hyperlink".
The reason for that is that the class "CElementHyperlink" always returns null as the hyperlink text. It would be better to returns the text/description/tooltip of the corresponding action.

Reproducible: Always

Steps to Reproduce:
See details.
Comment 1 Anton Leherbauer CLA 2010-08-13 08:04:11 EDT
Fixed in HEAD and cdt_7_0.
Comment 2 CDT Genie CLA 2010-08-13 08:23:04 EDT
*** cdt cvs genie on behalf of aleherbau ***
Bug 322129 - &quot;Unknown Hyperlink&quot; if more than hyperlink available

[*] CElementHyperlink.java 1.5 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CElementHyperlink.java?root=Tools_Project&r1=1.4&r2=1.5
Comment 3 Marko Tomljenovic CLA 2010-11-15 03:25:50 EST
The link now has a better name.
There is only a minor glitch still available. The 'Goto Declaration' command now is shown as '&Goto Declaration'. The & sign should be removed from the text
Comment 4 Anton Leherbauer CLA 2010-11-15 06:48:43 EST
Thanks, I checked in a fix to remove the mnemonics from the hyperlink text.