marcshj
marcshj

Reputation: 41

Can I refresh Eclipse Project Explorer automatically?

Can I refresh the explorer without pressing F5 button? I want it keep refresh by itself while running the project.

I'm using Eclipse Mars 4.5.1

Upvotes: 0

Views: 690

Answers (3)

marcshj
marcshj

Reputation: 41

It is needed to check both "Refresh using native hooks or polling" and "Refresh On Access". But not only check the "Refresh On Access".

Upvotes: 1

Sumit Singh
Sumit Singh

Reputation: 15886

From eclipse doc Workspace

Select Check Box: Refresh using native hooks or polling

enter image description here

Upvotes: 1

piyushj
piyushj

Reputation: 1552

there's a new preference Settings > General > Workspace > Refresh On Access (aka Lightweight Refresh). This preference causes Eclipse to automatically refresh resources when it discovers that they're 'out-of-sync'. When opening, reading or searching files, it'll prevent out-of-sync errors from occurring.

Other option is preference Settings > General > Workspace >Refresh using native hooks or polling

If this option is turned on then the workspace resources will be synchronized with their corresponding resources in the file system automatically using native refresh providers (on Windows) or a polling mechanism.

Note: This can potentially be a lengthy operation depending on the number of resources you have in your workspace.

For more details Can Eclipse refresh resources automatically?

Upvotes: 0

Related Questions