Commiting more changes to fix RSE issues with PHP projects.
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / ui / util / PHPFileUtil.java
index 5f9facc..702184a 100644 (file)
@@ -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;