title: Get the absolute path of the currently edited file in Eclipse
body: <p>I'd like to write a plugin that does something with the currently edited file in Eclipse. But I'm not sure how to properly get the file's full path.</p>
  
  <p>This is what I do now:</p>
  
  <pre><code>IFile file = (IFile) window.getActivePage().getActiveEditor.getEditorInput().
      getAdapter(IFile.class);
  </code></pre>
  
  <p>Now I have an IFile object, and I can retrieve it's path:</p>
  
  <pre><code>file.getFullPath().toOSString();
  </code></pre>
  
  <p>However this still only gives me the path relative to the workspace. How can I get the absolute path from that?</p>