Eclipse type hierarchy not always working

Slimer picture Slimer · May 3, 2013 · Viewed 11.5k times · Source

When I want to see implementation of some interface through F4 (type hierarchy) or ctrl+t (quick hierarchy) or implementation of a method, I can't see it! Problem is, that it works in 90%, but I have few cases when interface and implementation are in same package and eclipse doesn't recognize it via type hierarchy. Any suggestions? Got Eclipse Indigo SR2.

Answer

MattWallace picture MattWallace · Jun 20, 2013

I had this same problem and fixed it by deleting the Eclipse index cache files located in .metadata/.plugins/org.eclipse.jdt.core. Delete all .index files and savedIndexNames.txt. Do this while Eclipse is not running and then restart. This fixed the issue for me.