| Summary: | Allow bug hyperlinking in .spec editor | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] Linux Tools | Reporter: | Andrew Overholt <overholt> | ||||
| Component: | RPM | Assignee: | Alexander Kurtakov <akurtakov> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | linux.rpm-inbox | ||||
| Version: | 0.7.0 | ||||||
| Target Milestone: | 0.7 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Andrew Overholt
I can see "bug #12345" working with Mylyn installed -- it opens a menu that prompts the user to select a repository to open the bug with. Is this the behaviour we want to emulate? I wrote up a little patch that opens "bug #12345" in a hard-coded repository, but not sure how best to get a list of repositories for a user to select without using Mylyn. I could populate one manually. I could also just try to enable the Mylyn behaviour to function in the specfile editor when Mylyn and RPM are both installed. What you're seeing is correct. It doesn't work for me which is why I filed this, thinking it was something we had to enable in the .spec editor. I wonder why it works for you and not me? I don't see anything in the log and I have the task repository selected for the project. I meant it works for me in text editors, and I can write a patch to create a customized hover for the .spec editor :) Took a look at how Mylyn does it -- it uses "org.eclipse.ui.DefaultTextEditor" as a target for the hover action. SpecfileEditor extends TextEditor which has the id "org.eclipse.ui.DefaultTextEditor", I will work on getting it recognized as a valid target for the Mylyn hover action. Created attachment 172462 [details]
Patch allowing hyperlinking
Changed HyperlinkDetectors in .spec editor to use the extension point. Added HyperlinkDetectorTarget, fixed Detectors to have appopriate default constructor and use IAdapter to get Specfile/SpecfileEditor instances as needed.
Modified patch applied to trunk. |