I develop Java code with Eclipse and regularly get this message:
resource is out of sync with the filesystem.
Right-click > Refr
Window -> Preferences -> General -> Workspace