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

Bug 405913

Summary: AnnotationStyler ignores style tagName in merging styles
Product: [ECD] Orion Reporter: Silenio Quarti <Silenio_Quarti>
Component: EditorAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Silenio Quarti CLA 2013-04-17 15:29:51 EDT
1) Create a new js file with this content. The function keyword should have a warning error because of the unused "a" variable.

function () {
    var a;
}

2) Add this hack to textStyler.js in the _parse() function so that all keywords become links.

					case KEYWORD:
						style = keywordStyle;
						style = this._clone(style);
						style.tagName = "A"; //$NON-NLS-0$
						style.attributes = {href: "www.eclipse.org"};
						break;

3) Self-host orion and open file created in 1)

4) Hold Ctrl key and hover "function". Note that the keyword is not a link. Hover "var", note it is a link.