Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356898 - add hyperlink detector that detects bug links
Summary: add hyperlink detector that detects bug links
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: 0.9   Edit
Assignee: Steffen Pingel CLA
QA Contact:
URL:
Whiteboard:
Keywords: noteworthy
Depends on:
Blocks:
 
Reported: 2011-09-07 04:44 EDT by Steffen Pingel CLA
Modified: 2012-02-13 14:47 EST (History)
1 user (show)

See Also:


Attachments
mylyn/context/zip (5.11 KB, application/octet-stream)
2012-02-04 14:42 EST, Steffen Pingel CLA
no flags Details
screenshot (22.50 KB, image/png)
2012-02-13 14:47 EST, Steffen Pingel CLA
no flags Details

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