Eclipse Open declaration in Java project

后端 未结 14 1667
广开言路
广开言路 2020-12-13 23:28

In an Eclipse SVN project I have a problem; when I tried to open a declaration of one class, I got this error:

Problems opening an editor Reason : projectna         


        
14条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-14 00:09

    I had this problem, too. It looks like after a search-in-workspace Eclipse opened a wrong file.

    I pressed Ctrl + Shift + H (Open Type in Hierarchy), typed in the class name, and opened it. The file opened in a new tab, and everything was navigable again.

    The difference in icons is:

提交回复
热议问题