In an earlier blog, I wrote about using F3 to navigate to the declaration of a symbol, say a method. This works great until you hit an interface type and need to find the actual implementation. One way to get the implementation is to hit F4, which shows the type hierarchy in a separate view. The drawbacks of this are that although you can find an implementation, you’ll lose your place in the sense that it won’t automatically jump into the method you were interested in. A great alternative to F3-F4 is Ctrl-T.
Try highlighting a method call that is being made on an interface type and hit Ctrl-T. Eclipse will churn away for a second or so and then you’ll be presented with a dropdown list of implementers of the method. This is a very quick, very handy way to navigate directly to implementations without getting stuck at the interfaces.
Today’s tips:
Ctrl-T: quick type hierarchy
F4: type hierarchy in a view