Sometimes, for no clear reason, Eclipse’s ctrl+click function to find a methods source fails. This bugs the hell out of me, but is simple enough to fix. Unfortunately it doesn’t happen often enough for me to remember how to fix. And having to search each time with ‘just right’ keywords is also annoying. Anyway, here it is:
Close Eclipse.
Delete: /path/to/workplace/.metadata/.plugins/org.eclipse.jdt.core
Open eclipse and let it rebuild its indexes. Job done.
Comments
By Michael on
Thanks! Worked like a charm. Again, for an unclear reason ctrl-click stopped working for only one of my classes.
By lakshmimunukutla on
am deleting and restarting the eclipse, but org.eclipse.jdt.core is getting displayed again automatically, please suggest. Thanks.
By Kassovic on
Happens to me a lot too. Restarting eclipse without any manual deletion of files works for me, but still restarting IDE is not how I like fixing issues
By Jay on
I will restarting would fix my problem. But for some reason ctrl key does not work for one of my files. It works for other files in the same package, just not for one particular file.
I’ve tried removing org.eclipse.jdt.core, I’ve tried starting with -clean … to no avail.
Any suggestions would be appreciated.
(i guess i could just start a new workspace, sigh)
By Vinod on
Thanks. This worked for me
I had problem with only one file and it is working now after your solution.