Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 256152 - [navigation] Open Declaration on Interface method enhancement
Summary: [navigation] Open Declaration on Interface method enhancement
Status: RESOLVED DUPLICATE of bug 44277
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-21 12:55 EST by Steve Prior CLA
Modified: 2009-05-05 06:45 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Prior CLA 2008-11-21 12:55:31 EST
Build ID: 3.3.0

Steps To Reproduce:
1. Select a method on an Interface
2. "Open Declaration" from menu


More information:
I've been reading a lot of code lately in which "Open Declaration" on a method ends up showing you an Interface which doesn't really tell me what I was looking for, so then I've got to find the class which implements the interface to browse the real code behind the method. If you know the method is on an interface you can bring up the type hierarchy and then find the method, but this is also a bit klunky.

I think a really great new feature might be along the lines of when you select Open Declaration and Eclipse knows it's going to show you an Interface have it show you a list of classes which implement the interface and then when you select one of them it would bring you to that method definition in that implementing class.
Comment 1 Remy Suen CLA 2008-11-22 01:53:33 EST
Hi Steve, place the text cursor in the method's name then try hitting Ctrl+T, does that help?
Comment 2 Steve Prior CLA 2008-11-22 09:18:08 EST
Yes and no.  It is a lot closer to what I'm suggesting, but then it becomes almost a replacement for the Open Declaration menu command because one will consistently get you closer to what you want and the other might get you less useful information.  Since Eclipse makes a lot of other smart assists I still think my original suggestion would save users time.
Comment 3 Remy Suen CLA 2008-11-23 02:38:04 EST
I have no doubt that it would save user's time but then it kind of goes against what "Open Declaration" is supposed to do in my opinion. "Open Declaration", as I see and read it, is intended to open the declaration of a method or type. This declaration, in your example, is "declared" in the interface type and not exactly "declared" in the implementing type.
Comment 4 Dani Megert CLA 2008-11-24 03:25:13 EST
Changing the behavior of 'Open Type' is a no go. Bug 44277 is what you are looking for.

*** This bug has been marked as a duplicate of bug 44277 ***