title: Load Files into TextEditor programmatically that are not in workspace
body: <p>Is there a way to load Files outside the workspace? 
  This is what I found:</p>
  
  <pre><code>IFile fileToBeOpened = ...;
  IEditorInput editorInput = new FileEditorInput(fileToBeOpened);
  IWorkbenchWindow window=PlatformUI.getWorkbench().getActiveWorkbenchWindow();
  IWorkbenchPage page = window.getActivePage();
  page.openEditor(editorInput, "org.eclipse.ui.DefaultTextEdtior");
  </code></pre>
  
  <p>The problem here is the first line. My files that I would like to edit are of the java.io.File type. But there is no way of converting this into an IFile instance. How can I pass my java.io.File as input for my Editor?</p>