title: Eclipse: how to refresh the current project programmatically
body: <p>I'm building an eclipse plugin in which I'm going to create a new file in my project.
  Is there a way to refresh the current project?</p>
  
  <p>I know that I can have a reference to all the project by calling </p>
  
  <pre><code>ResourcesPlugin.getWorkspace().getRoot().getProjects()
  </code></pre>
  
  <p>And the iterate among them and use</p>
  
  <pre><code>IResource.refreshLocal()
  </code></pre>
  
  <p>However this approach is not the best one, especially if the user have a lot of projects.</p>
  
  <p>An alternative would be explore the project for checking if the new file is present or not but I would avoid it.</p>