import net.sourceforge.phpeclipse.builder.ExternalStorageDocumentProvider;
import net.sourceforge.phpeclipse.builder.FileStorage;
import net.sourceforge.phpeclipse.builder.IdentifierIndexManager;
-import net.sourceforge.phpeclipse.phpeditor.CustomBufferFactory;
-import net.sourceforge.phpeclipse.phpeditor.DocumentAdapter;
+import net.sourceforge.phpeclipse.CustomBufferFactory;
+import net.sourceforge.phpeclipse.DocumentAdapter;
import net.sourceforge.phpeclipse.phpeditor.ICompilationUnitDocumentProvider;
import net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider;
import net.sourceforge.phpeclipse.phpeditor.PHPSyntaxRdr;
IWorkbenchPage page = window.getActivePage();
IPath path = new Path(filename);
// If the file exists in the workspace, open it
- IFile file = getWorkspace().getRoot().getFileForLocation(path);
+ IFile file = getWorkspace().getRoot().getFile(path);
IEditorPart editor;
ITextEditor textEditor;
if (file != null && file.exists()) {