Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse does not show src file

I have three different projects in my eclipse and yesterday src file became unvisible in one of the projects. Two days ago it was ok and I have no idea how this happened. I can not see src file in project explorer or package explorer.

Project Explorer :

Project Explorer

However, if I look with navigator I can see all files in the directories.

Navigator :

Navigator

I use Eclipse Indigo SR2 and IBM Rational ClearCase for first two project. The other is my local test project.

Do anybody know how can I get back to src file into the project explorer?

Thanks.

like image 263
Aykut Akin Avatar asked Aug 12 '12 07:08

Aykut Akin


3 Answers

Try to right-click on the project and click on refresh.

like image 137
duslabo Avatar answered Oct 06 '22 00:10

duslabo


Check your Java build path to make sure the src is present. Right click the project and select Build Path -> Configure Build Path. If the src directory is not present in the build path, it will not show up under the Java area as you have shown, but it will be present in the Navigator.

like image 33
Francis Upton IV Avatar answered Oct 05 '22 23:10

Francis Upton IV


I had the same problem today, it is because i switch to wrong view model.I suggest you to switch the project explorer to Package Explorer.

like image 34
Roy Avatar answered Oct 06 '22 00:10

Roy