title: How to get file path information from ICompilationUnit?
body: <p>I could get a set of ICompilationUnit using the following code, but I need get the physical file path from the ICompilationUnit or IWorkspaceRoot. </p>
  
  <p>How can I do that?</p>
  
  <pre><code>private static Set&lt;ICompilationUnit&gt; getFiles(String projname)   
  throws CoreException {
      IWorkspaceRoot ws = ResourcesPlugin.getWorkspace().getRoot();
      IProject proj = ws.getProject(projname);
      IJavaProject javaProject = JavaCore.create(proj);
      Set&lt;ICompilationUnit&gt; files = new HashSet&lt;ICompilationUnit&gt;();
      javaProject.open(new NullProgressMonitor());
      for (IPackageFragment packFrag : javaProject.getPackageFragments()) {
          for (ICompilationUnit icu : packFrag.getCompilationUnits()) {
              files.add(icu);
          }
      }
      javaProject.close();
      return files;
  }
  </code></pre>