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.
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.
-
1There is probably a bug in eclipse leading to cache corruption during application crash. – Guillaume Sep 12 '13 at 10:05
-
1Cool .. this fixed the issue! I was wondering why I was suddenly not seeing any subclasses in the type hierarchy. – Thimmayya Oct 17 '13 at 21:23
-
-
1I take it all back. It worked, EXACTLY ONCE! I'll see if I can create a simple, repeatable example and log a bug. – w25r Feb 19 '14 at 22:11
-
3By the way, the .metadata directory is located in your workspace root folder. – Pedro Madrid Apr 26 '18 at 20:09
Use Eclipse clean mode for deleting caches, look here: How to run eclipse in clean mode? and what happens if we do so?
Sometimes is good to use clean mode to prevent these types of problems.
-
Worked for me on Neon Release (4.6.0). I ran in clean mode by adding -clean as first line of my eclipse.ini file. – el-teedee Jul 31 '17 at 10:04
I also had this problem and fixed it. The reason of this problem is that when the eclipse is running, I reinstall the JDK from 1.8 to 1.6. So I close eclipse, install JDK 1.8 again, then it's OK! May it will be helpful for others.
eclipse.buildId=4.5.0-vfinal-2016-12-13T10:59:29Z-Typesafe
– raisercostin Apr 17 '17 at 13:51