Programming Tips - How can I avoid getting the "out of sync" error in Eclipse?

Date: 2011aug14 Product: Eclipse Q. How can I avoid getting the "out of sync" error in Eclipse? A. There is a option to auto-refresh:
Window > Preferences > General > Workspace > Refresh automatically
However if you get "out of sync" you can press F5 to refresh.