Change to openFileInTextEditor to fix ticket issue #650.
authorEdward Mann <phpeclipse.dev@edmann.com>
Wed, 23 Jan 2008 21:53:45 +0000 (21:53 +0000)
committerEdward Mann <phpeclipse.dev@edmann.com>
Wed, 23 Jan 2008 21:53:45 +0000 (21:53 +0000)
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()) {