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

Bug 351465

Summary: Allow plugins to linkify text
Product: [ECD] Orion Reporter: John Arthorne <john.arthorne>
Component: ClientAssignee: John Arthorne <john.arthorne>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: eclipse.felipe
Version: 0.2   
Target Milestone: 0.2   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 351688    

Description John Arthorne CLA 2011-07-07 11:35:19 EDT
We should have a service that allows a plugin to contribute scanners that can convert text to hyperlinks. For example convert an email address into a mailto: HREF, or "bug 123456" into bugzilla URL references. This can be used in numerous places, such as git commit comments, or even in the editor if it supported hyperlinks.
Comment 1 Felipe Heidrich CLA 2011-07-07 13:33:48 EDT
depends on Bug 334909 (in order to support link in the editor) ?
Comment 2 John Arthorne CLA 2011-07-07 14:25:00 EDT
There are some other places this can be used, but yes, links in the editor would be great to have.
Comment 3 John Arthorne CLA 2011-07-07 15:48:35 EDT
I have added a service that can be used to "linkify" a piece of text:

http://wiki.eclipse.org/Orion/Documentation/Developer_Guide/Core_client_services#orion.core.textlink

And another declarative service that a plugin can use to provide link scanners (patterns that identify links and the corresponding URL to use):

http://wiki.eclipse.org/Orion/Documentation/Developer_Guide/Core_client_services#orion.core.linkScanner

There is a sample plugin with Eclipse bugzilla integration here:

http://mamacdon.github.com/0.3/plugins/bugzilla/plugin.html