Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 603
eugene Avatar asked Nov 20 '12 09:11

eugene


People also ask

How to refresh 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.

How do you refresh a project programmatically in eclipse?

To refresh all projects in a workspace, simply enumerate all projects using ResourcesPlugin. getWorkspace(). getRoot(). getProjects() API and refresh each in turn.

How do you refresh a project in Java?

Use : Window->Preferences-> General -> Workspace and check Refresh using native hooks and polling checkbox.


2 Answers

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.

like image 106
ntalbs Avatar answered Sep 21 '22 00:09

ntalbs


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.

like image 24
Aditya K Avatar answered Sep 23 '22 00:09

Aditya K