I ran recently into this annoying Eclipse error while trying to change a file inside a project.
Resource is out of sync with the file system
After fiddling around for a while I found out that the solution to this problem is quite simple. Just right-click on your project and press
refresh in the pop-up menu.