Reputation: 2344
I have a workspace with a bunch of java projects. If I go to File->Refresh
, it doesn't really refresh anything (perhaps the currently selected project). How do I get eclipse to refresh all of the projects?
Upvotes: 110
Views: 108178
Reputation: 5353
This answer led me to an even simpler solution, no configuration necessary.
Cmd-3 build all (control-3 on windows)
Edit: Correction -- I need to both refresh and build. Build does not automatically refresh. I'm currently using two actions, "echo" from my comment in the linked answer I just referred to (an External Tool configuration with a hook to refresh all), followed by cmd-3 "build all"
Upvotes: 2
Reputation: 510
Easy.
Run the tool to refresh all projects.
Upvotes: 10
Reputation: 163548
For anyone curious how to select all of those projects on OS X where Ctrl+A doesn't work:
Upvotes: 2
Reputation: 4491
If you want to refresh all Projects, ignoring closed projects, then the easiest way is to:
Effectively F5 refreshes the Workspace when a navigation view has focus and nothing is selected.
Upvotes: 43
Reputation: 8642
Ctrl-A, then F5.
You can set up the workspace to automatically refresh when it detects changes in the preferences. (Window > Preferences > General > Workspace > Refresh Automatically)
Upvotes: 16
Reputation: 1109532
It will indeed only refresh the current project (or, more specifically, the current selection in the project explorer). I just click somewhere in the project explorer, do Ctrl+A to select all projects and then press F5 to achieve a complete refresh.
Upvotes: 109
Reputation: 1487
Control click all your projects together, then right click and hit refresh.
Usually I refresh all like that, then i make sure to clean all projects and rebuild in eclipse.
Upvotes: 6