return null;
}
- String projectPath = project.getLocation().toString();
+ String projectPath = project.getFullPath().toString();
String filePath = absoluteFilePath.toString().substring(
projectPath.length() + 1);
return project.getFile(filePath);
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;