Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351465 - Allow plugins to linkify text
Summary: Allow plugins to linkify text
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: 0.2   Edit
Assignee: John Arthorne CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 351688
  Show dependency tree
 
Reported: 2011-07-07 11:35 EDT by John Arthorne CLA
Modified: 2011-09-01 11:42 EDT (History)
1 user (show)

See Also:


Attachments

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