if (remoteSourcePath.isPrefixOf (path)) { // Is the server side filename with the remote source path
path = path.removeFirstSegments (remoteSourcePath.matchingFirstSegments (path)); // Remove the remote source path
file = path.toString (); // The filename without the remote source path
- projectPath = (PHPeclipsePlugin.getWorkspace().getRoot().getProject(projectName).getLocation()); // Get the absolute project path
+ projectPath = (PHPeclipsePlugin.getWorkspace().getRoot().getProject(projectName).getFullPath()); // Get the absolute project path
return (projectPath.append (path)).toOSString (); // Return the filename as absolute client side path
}
localPath = new Path (local); // Create new IPath object for the local/client side path
path = localPath.append (path); // Prepend the project relative path to filename
- projectPath = (PHPeclipsePlugin.getWorkspace().getRoot().getProject(projectName).getLocation()); // Get the absolute project path
+ projectPath = (PHPeclipsePlugin.getWorkspace().getRoot().getProject(projectName).getFullPath()); // Get the absolute project path
return (projectPath.append (path)).toOSString (); // Return the filename as absolute client side path
}
IFile[] files = root.findFilesForLocation(filePath);
for (int i = 0; i < files.length; i++) {
if (files[i].getProject().equals(proj)) {
- fileName = proj.getLocation().append(files[i].getProjectRelativePath()).toOSString();
+ fileName = proj.getFullPath().append(files[i].getProjectRelativePath()).toOSString();
break;
}
}