From: Edward Mann Date: Wed, 23 Jan 2008 21:53:45 +0000 (+0000) Subject: Change to openFileInTextEditor to fix ticket issue #650. X-Git-Url: http://secure.phpeclipse.com?hp=cd3833d470bc3d872fbcca4e240616b28b7b7f41 Change to openFileInTextEditor to fix ticket issue #650. --- diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPeclipsePlugin.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPeclipsePlugin.java index 34980fc..d3a771d 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPeclipsePlugin.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPeclipsePlugin.java @@ -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()) {