History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-3949
Type: Usability Problem Usability Problem
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Anna Kozlova
Reporter: Sascha Weinreuter
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

"Go To Declaration Of" should display additional info about each possible declaration

Created: 02 Jan 06 16:03   Updated: 07 Apr 06 21:14
Component/s: Code Navigation, Plugin Support. API
Fix Version/s: Demetra 5231

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: None
Image Attachments:

1. ctrl-b.fake.jpg
(11 kb)

2. screenshot-1.jpg
(8 kb)

Build: 4,095
Fixed in build: 4,195
Severity: Medium


 Description  « Hide
When pressing ctrl-b on an element that is covered by a PsiPolyVariantReference, the possible target locations are only displayed using the value returned from PsiNamedElement.getName() for each resolve result. In the not too uncommon case that the resolved elements all have the same name, it's impossible to distinguish the elements in the list. See the attached screenshot.

The list should show the return value from each element's getPresentation().getLocationString() - if available - next to its name or use some other means to be able to identify each element in the list.



 All   Comments   Work Log   Change History      Sort Order:
Maxim Mossienko - 05 Jan 06 21:10
One would get this information in control + shift + i popup invoked on declaration

Sascha Weinreuter - 05 Jan 06 21:33
ctrl-shift-i is not even close to be an acceptable workaround or even a solution.

Do you expect the user to first hit control-shift-i, choose the actual target, memorize its index and then press ctrl-b and select the according index from that list?

Even if control-shift-i worked on the "goto declaration" popup (currently it doesn't), this would mean to go through a possibly very long list until you've found the desired element.


Maxim Mossienko - 05 Jan 06 21:43
I meant that control + shift + i works on the declaration today and your proposal is to duplicate 'goto declaration' popup with such information.

Sascha Weinreuter - 05 Jan 06 22:08
Maybe we're talking about different things here. I'd like the ctrl-b popup to look like this mockup I just attached. It's not to "duplicate" the information (in a negative sense) but to make it available to another, different, use-case.