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

Bug 248801

Summary: implement new hyperlink detection API for XPlanner
Product: z_Archived Reporter: Steffen Pingel <steffen.pingel>
Component: MylynAssignee: Helen Bershadskaya <hbershadskaya>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: dev   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 244442    
Attachments:
Description Flags
mylyn/context/zip none

Description Steffen Pingel CLA 2008-09-26 18:45:28 EDT
The XPlanner connector should support detection of multiple hyperlinks by implementing the AbstractRepositoryConnectorUi.findHyperlinks() method which was added in Mylyn 3.1.
Comment 1 Steffen Pingel CLA 2008-10-19 17:06:54 EDT
Helen, does XPlanner support a syntax for linking to iterations/stories? Otherwise this can probably be resolved as wontfix.
Comment 2 Helen Bershadskaya CLA 2008-10-20 12:52:48 EDT
Yes, it actually does.  Would have been too easy otherwise :-)
Comment 3 Steffen Pingel CLA 2008-10-20 15:35:01 EDT
Take a look at BugzillaConnectorUi.findHyperlinks(). If it's possible to match hyperlinks in XPlanner with a regular expression the detector should be fairly straight forward to implement.
Comment 4 Steffen Pingel CLA 2008-10-20 15:35:04 EDT
Created attachment 115604 [details]
mylyn/context/zip
Comment 5 Helen Bershadskaya CLA 2008-10-29 02:34:47 EDT
Both task and user story editor now have a hyperlink when task or story references are embedded in the description.  In XPlanner's web view, the hyperlink gets transformed from "task:<taskid>" to "task:<task summary>", but not in our editor.  This should be another bug -- not quite sure how to do this now other than by brute force.
Comment 6 Steffen Pingel CLA 2008-10-29 02:43:11 EDT
Mylyn should provide a tool tip displaying the summary if the task is in the task list which has worked well for the other connectors.
Comment 7 Helen Bershadskaya CLA 2008-10-29 13:09:49 EDT
Yes, you are right -- the tooltip does show up if the task is in the task list.  But I was actually doing my testing with a "search by id" found task, so didn't realize it works that way.  Would it be possible to extend the tooltip feature to the cases of non-task list items?  I think there's a good chance this might be the case, since there's a good chance references will probably be to bugs that weren't part of the original query.  I realize the code gets executed a lot, but maybe once found values can be cached for the lifetime of the opened task editor?
Comment 8 Steffen Pingel CLA 2008-10-29 14:07:22 EDT
That would indeed be an interesting feature. I am not sure if it is worth the complexity of triggering a background job and updating the tooltip after the synchronization completes but it could certainly be done.