Community
Participate
Working Groups
I've tried this with bugzilla, I'm not sure if this is the case with all other editors (or an issue with the HyperLinkDetector) that mylyn uses. Mylyn does not seem to detect hyperlinks when they contain a parenthesis within them: for e.g. http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Logger.html#trace(java.lang.Object). You'll notice that the closing ')' is not part of the hyperlink either in the textbox where you type comments or in the discussion/comments section where it is shown in read-only mode.
This is intentional to handle the more common case where the parenthesis is not part of the hyperlink (e.g. http://elcipse.org). I can see how that breaks your use case though. It might work to count the number of open parenthesis in the hyperlink and include as many trailing closing parenthesis. I have attached a context in case anyone wants to pick up this bug.
Created attachment 146347 [details] mylyn/context/zip
I want to contribute fixing this bug.
Created attachment 159716 [details] Patch Proposed fix for bug #288427
Created attachment 159717 [details] mylyn/context/zip
Thanks for the patch Abner. It would be great if you could add a couple of test cases to TaskUrlHyperlinkDetectorTest and attach a new patch. I'll review and apply it then.
Created attachment 159800 [details] Patch with fix and tests Hi Steffen, this new patch has the bug fix and the tests added to TaskUrlHyperlinkDetectorTest.
Created attachment 159801 [details] mylyn/context/zip
Great patch! I have applied with a minor simplification: checkForExistingTasklist() now returns false if the user cancels instead of storing the response in a field.
That comment was intended for a different bug but mostly applies anyways. Thanks for the patch Abner. I have applied it without modifications.