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

Bug 342591

Summary: [navigation] Hyperlinks in editor no longer working
Product: [Eclipse Project] Platform Reporter: AMIQ Support <support>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: daniel_megert, remy.suen
Version: 3.6   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description AMIQ Support CLA 2011-04-12 11:03:03 EDT
Build Identifier: I20100608-0911

When having multiple hyperlinks in an editor, sometime after triggering content assist (or another control) the hyperlinks stop working. The issue is located in:

MultipleHyperlinkPresenter.MultipleHyperlinkHoverManager.showInformationControl(Rectangle subjectArea)

when setting the fIsControlVisible= true; always, while the super.showInformationControl(subjectArea) is not always called.


Correct code is:

		protected void showInformationControl(Rectangle subjectArea) {
			if (fTextViewer instanceof IWidgetTokenOwnerExtension) {
				if (((IWidgetTokenOwnerExtension) fTextViewer).requestWidgetToken(this, WIDGET_TOKEN_PRIORITY))
					super.showInformationControl(subjectArea);
				else
					return; // this is the fix for broken hyperlinks
			} else if (fTextViewer instanceof IWidgetTokenOwner) {
				if (((IWidgetTokenOwner) fTextViewer).requestWidgetToken(this))
					super.showInformationControl(subjectArea);
				else
					return; // this is the fix for broken hyperlinks
			} else {
				super.showInformationControl(subjectArea);
			}

			fIsControlVisible= true;
		}





Reproducible: Always

Steps to Reproduce:
1.press CTRL and move the mouse to activate hyperlinks on an entity having multiple hyperlinks
2.holding CTRL pressed, press also the space bar to activate the content assist, and keep like this for 2 sec (content assist will toggle...)
3.after that try to hyperlink anywhere in the editor... hyperlinks are gone until you close and reopen the editor
Comment 1 Dani Megert CLA 2011-04-12 11:14:05 EDT

*** This bug has been marked as a duplicate of bug 332676 ***