I inherited a java project and don't have much experience with Eclipse. In the package explorer I can see the outline of the project with all the classes but when I try to edit any of them it says the source code is not found. When I look the source code is where it seems it is supposed to be. I am assuming that in pulling the code out of source control the path must have changed from the original. Is there an easy way to tell the IDE to just connect a code file to a class?
What's really weird is that 'some' of the files in the very same directory are found while others are not. Can't say I think very highly of this IDE so far.
If refresh and clean doesn't work, it might work to just simply just run your code. For me it did the trick. After many refresh and cleaning/ building didn't work.
You can right click on the project name and click refresh. And just to be sure, you can select the package name and right click 'Refresh' too.
Click on the project, then press F5 to refresh the file. It should be fine.
You can have Eclipse do that automatically for you.
Using the latest version, go to Window -> Preferences.
Select General -> Workspace and from there make sure the first and second option are checked:
This is very useful especially if you use Dropbox or something similar (wuala etc) :)
Right click on the project in the Package Explorer view and select Refresh.