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:
parent
f9820ec147
commit
0bf4c5cff8
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue