Reprint: http://blog.csdn.net/lotusyangjun/article/details/5611352
This is a problem with a file system that is not synchronized because of changes to the resource in the project outside of Eclipse, but is sometimes not modified outside of Eclipse, and a similar error is reported.
WORKAROUND: You need to manually refresh the resource manager.
(1) in Eclipse, the engineering directory right, select F5 (Refresh)
(2) Set Eclipse automatic refresh.
Through Window->preferences->general->workspace, select the refresh automatically
The project in
Eclipse cannot view the source file, error: Resource is out of sync with the file system. The only problem was that the source file was modified outside of the Eclipse project but not refreshed. MyEclipse Help document:
Don ' t forget to refresh!
Whenever you with external tools to modify workspace files, must perform a Refresh from within Eclipse to make the work Space aware of the changes. If you have a resource out of sync error in Eclipse it are a sign that there are resources into Eclipse that have been modifie D outside of ECLIPSE.&NBSP
One solution is to perform a refresh (available from a resource ' s popup menu) on any Resou RCEs or projects that where modified outside of Eclipse.
There is also a preference to refresh automatically. But set to automatic refresh in the project is a little bigger than the time price. Window->preferences->general->workspace, select the refresh automatically.