eclipse, refresh files edited by external editor

I currently use emacs to edit .java files and run eclipse.

Eclipse doesn't automatically recognize modified files, so I often end up running unmodified application.

I wonder if there exists a shortcut to refresh all the modified files in eclipse.


Solution 1:

Perhaps you want to check Preferences > General > Workspaces > Refresh using native hooks or polling. You can see that the eclipse refreshes the file you edit with external editor (like vi, emacs, etc) when you check the option.

Solution 2:

On the project explorer you need to select the project(s) that you want to refresh and then click on File->Refresh or hit F5.