X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/PHPFileUtil.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/PHPFileUtil.java index 5f9facc..702184a 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/PHPFileUtil.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/PHPFileUtil.java @@ -136,7 +136,7 @@ public class PHPFileUtil { return null; } - String projectPath = project.getLocation().toString(); + String projectPath = project.getFullPath().toString(); String filePath = absoluteFilePath.toString().substring( projectPath.length() + 1); return project.getFile(filePath); @@ -200,10 +200,10 @@ public class PHPFileUtil { if (!absolute) { IFile ifile = FileBuffers.getWorkspaceFileAtLocation(path); if (ifile != null) { - file = ifile.getFullPath().toFile(); - if (file.exists()) { - return true; - } + IResource resource = ifile; + if (resource.exists()) { + return true; + } } } return false;