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

Bug 356898

Summary: add hyperlink detector that detects bug links
Product: z_Archived Reporter: Steffen Pingel <steffen.pingel>
Component: MylynAssignee: Steffen Pingel <steffen.pingel>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: b.muskalla
Version: unspecifiedKeywords: noteworthy
Target Milestone: 0.9   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip
none
screenshot none

Description Steffen Pingel CLA 2011-09-07 04:44:08 EDT
The Gerrit configuration specifies patterns for links in comments that should hyperlinked in the task editor, e.g.:

"commentLinks":[
  {"find":"(I[0-9a-f]{8,40})","replace":"\u003ca href\u003d\"#q,$1,n,z\"\u003e$\u0026\u003c/a\u003e"},
  {"find":"([Bb]ug:?\\s*#?)(\\d+)","replace":"$1\u003ca href\u003d\"https://bugs.eclipse.org/bugs/show_bug.cgi?id\u003d$2\"\u003e$2\u003c/a\u003e"}
]
Comment 1 Steffen Pingel CLA 2011-11-22 11:15:42 EST
The code review with a work in progress change is here: http://review.mylyn.org/#change,114
Comment 2 Steffen Pingel CLA 2012-02-04 14:42:37 EST
The configured link patterns should now be detected and hyperlinked with the limitation that there is no support for rendering the hyperlink instead of the actual text. This means if a replacement pattern such as ([Tt]ask:\\s+)(\\d+)  -->  <a href=\"http://tracker.mylyn.org/$2\">$2</a> is specified Task 123 would render as Task 123 instead of 123 and the entire matched pattern would be hyperlinked.
Comment 3 Steffen Pingel CLA 2012-02-04 14:42:40 EST
Created attachment 210542 [details]
mylyn/context/zip
Comment 4 Steffen Pingel CLA 2012-02-13 14:47:50 EST
Created attachment 210943 [details]
screenshot