简体   繁体   中英

Why is hover for quick java docs not working?

I have imported a maven project through SVN in my organization. I am not able to see JavaDocs on hovering over any class, method neither is the class or method highlighting so that I can go into the respective implementation. Also, I cannot see javadocs even for core java classes. Whenever, I press Shift + F2, I get error saying, "The resource is not on the build path of a Java Project." I have tried the different answers on this forum and others as well. None seems to work. Can anyone help regarding this solution?

UPDATE: Just to add, open call hierarchy is also not working.

Finding a solution for this, I stumbled upon this which solved the problem for me: Make sure you are not editing the file in maven parent project. https://stackoverflow.com/a/7415743/3662041

I don't have enough points to upvote the above answer. Whoever checks this answer, please upvote the answer mentioned in the link.

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