Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mylyn-integrators] Re: Default hyperlink detection fails

Thanks for the input, I tried it with the extension point but it did'nt work either (unsurprisingly) as I see now, the TaskHyperlinkDetector which calls findHyperLinks on the connectorUi also implements the hyperlink detector extension point ;-) As far as I understood it it is currently not possible at all to extend the patterns in the RepositoryTextScanner to color the custom hyperlinks - is this correct?

regards,
Dennis

Steffen Pingel wrote:
I see that apart from findHyperlinks the trac connector also implements
the org.eclipse.ui.workbench.texteditor.hyperlinkDetectors extension point.
The detector will eventually call TracHyperlinkUtil.findTracHyperlinks
which also includes the links detected by
TracHyperlinkUtil.findTicketHyperlinks. The later is called by the TracConnectorUi.findHyperlinks. What I don't understand here is the relation between these two ways of
detecting links (connectorUI vs extension point - this does not seem to
have anything to do with coloring) - can you give me some more details?

Trac has very extensive support for hyperlinking to different repository artifacts like changesets and wiki pages. This conflicted with other hyperlink detectors when Trac repositories were linked to Python projects. To fix that I split up the Trac hyperlink detector. This bug has more details:

215978: limit extended Trac hyperlinking support to task editor
https://bugs.eclipse.org/bugs/show_bug.cgi?id=215978

As Frank pointed out we are in the process of refactoring RepositoryTextScanner to use the same regular expression based patterns for hyperlink detection and syntax highlighting. Mylyn's extensibility is currently limited to hyperlink detection but once bug 167941 is resolved this will hopefully be unfied in a single API.

Steffen




Back to the top