Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342591 - [navigation] Hyperlinks in editor no longer working
Summary: [navigation] Hyperlinks in editor no longer working
Status: CLOSED DUPLICATE of bug 332676
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.6   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-12 11:03 EDT by AMIQ Support CLA
Modified: 2011-04-12 11:14 EDT (History)
2 users (show)

See Also:


Attachments

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