Community
Participate
Working Groups
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.
Hi Steve, place the text cursor in the method's name then try hitting Ctrl+T, does that help?
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.
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.
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 ***