1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

Look for the filename in the workspace if it is an absolute path.

This commit is contained in:
Alain Magloire 2002-11-06 16:28:50 +00:00
parent f9820ec147
commit 0bf4c5cff8

View file

@ -269,11 +269,10 @@ public class ErrorParserManager extends OutputStream {
else {
path = fp;
}
}
else {
} else {
path = (IPath) getWorkingDirectory().append(filePath);
}
IFile file = fProject.getFile(path);
IFile file = (path.isAbsolute()) ? fProject.getWorkspace().getRoot().getFileForLocation(path) : fProject.getFile(path);
return (file.exists()) ? file : null;
}