简体   繁体   中英

Code Navigation in Netbeans 7.2

In Netbeans 7.2, when I try to navigate to a method implementation (that has more than one implementation) nothing happens. If the method only has one implementation it all works, but if it has more than one, it doesn't. Is it possible to make it suggest both implementations (like in eg eclipse)?

Update 1: I investigated this and found that NB7.2 only supports this kind of navigation in your own code. So if you have a library that consists of an interface and two classes that implement this interface, it will not suggest that you navigate to these two classes, instead Netbeans tells you that "overriden methods not found". Maybe the nNtbeans compiler is unable to find these classes.

Update 2: In eclipse this feature refers to JDT weaving. I'm wondering, are there any in netbeans?

To your first question, in the margin (where the line numbers are) you will either see a little green "i" for implements or a "o" over overwrites or a little gray dot (which I take as meaning it does both)...

在此输入图像描述

So, if you click on it you can navigate "up" the parent chain or "down" the child chain, depending on what it is you want to do.

It can actually be quite neat as you don't need to click, click, click, click to get to the parent class/interface, you click and select :P

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM