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.
When a new file is created in Eclipse you might need to refresh the Eclipse project to see the new file. This refresh process can take place automatically. To set auto-refresh, go to window → preferences → general → workspace and check the "Refresh using native hooks or polling" check-box.
To refresh all projects in a workspace, simply enumerate all projects using ResourcesPlugin. getWorkspace(). getRoot(). getProjects() API and refresh each in turn.
Use : Window->Preferences-> General -> Workspace and check Refresh using native hooks and polling checkbox.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With