removing nasty hack to keep the error page from displaying. Scorphus has applied...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / PHPeclipsePlugin.java
index 34980fc..d3a771d 100644 (file)
@@ -827,7 +827,7 @@ public class PHPeclipsePlugin extends AbstractUIPlugin implements
                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()) {