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

Bug 292916

Summary: Generated links in stacktraces should prompt if FQCN is not unique in workspace
Product: z_Archived Reporter: David M. Karr <davidmichaelkarr>
Component: MylynAssignee: Project Inbox <mylyn-triaged>
Status: CLOSED MOVED QA Contact:
Severity: enhancement    
Priority: P3 Keywords: helpwanted
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description David M. Karr CLA 2009-10-21 11:56:13 EDT
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
Build Identifier: 20090920-1017

When I view a JIRA ticket with a stacktrace, each entry presents as a link, which when clicked, opens up the specified file, at that line number. This is very convenient.

One minor annoyance is that it will take the first file with that FQCN in the workspace. I can't tell what algorithm it uses. If I have two projects open that contain two versions of the same FQCN, it just picks one without asking me.

I have this situation because the two projects are from different branches of the same subversion repo. One has "-trunk" at the end of the name, and the other does not.

In this case, it would be convenient if Mylyn gave me some way to indicate which one I want it to choose, either each time I click the link, or somehow associated with the task containing the stacktrace. If the latter, that would likely have to be private data, not stored in JIRA. 


Reproducible: Always
Comment 1 Steffen Pingel CLA 2009-11-06 04:54:29 EST
The hyperlink detector currently invokes OpenTypeAction.findTypeInWorkspace() which returns the "first" match. It would be feasible to show a list of matching projects or to show the Open Type dialog filtered to all matches.

I have marked the bug as helpwanted to indicate that we would be happy to support and accept a community contribution to resolve this request.
Comment 2 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn