title: Refreshing classpath container name in Eclipse
body: <p>Hi I'm working on a plugin for Eclipse which in part involves creating/upkeeping classpath containers for java projects. Under some conditions it is possible for a container name (<code>getDescription()</code>) to change. Now just selecting the container or the project and hitting F5 refreshes no problem and shows the new name, but I can't seem to do this programatically. I've tried:</p>
  
  <pre><code>IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
  ...
  for (IProject p: root.getProjects()) {
      ... some checks done here...
      p.refreshLocal(IResource.DEPTH_INFINITE, null);
  }
  </code></pre>
  
  <p>but this doesn't seem to refresh the name. I've also tried some silly things like duplicating parts of what <code>RefreshAction</code> (what is used when pressing F5 I presume) does, but that did not work either. Any help would be appreciated.</p>