On Eclipse, what does “Preferences -> General -> Workspace -> Refresh using native hooks or polling” do?

前端 未结 3 1175
梦谈多话
梦谈多话 2020-12-30 05:21

There is this check box on Eclipse:

Preferences -> General -> Workspace -> Refresh using native hooks or polling

The Eclipse documentation says:

3条回答
  •  半阙折子戏
    2020-12-30 05:48

    I have found out that the option "Refresh using native hooks or polling" was the original way of doing this:

    Previous Eclipse versions relied on native refresh providers (on Windows) or a polling mechanism to keep the workspace synchronized with the underlying filesystem. This capability can be still enabled by selecting Refresh using native hooks or polling on Opens the preference page Preferences > General > Workspace.

    Now a new lightweight mechanism is available. Files discovered to be out-of-sync by the workspace, for example while accessing the file content by an editor, will be automatically asynchronously refreshed. If you want to refresh files this way, go to Opens the preference page Preferences > General > Workspace and select Refresh on access.

    From now on I'll go only with Refresh on access.

提交回复
热议问题