1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 14:12:10 +02:00

Use correct translation unit filename for comparison

This commit is contained in:
Anton Leherbauer 2006-07-25 13:29:59 +00:00
parent d404ce7775
commit 50f7176caa

View file

@ -90,7 +90,8 @@ public class CSourceViewerDecorationSupport
if (fASTTranslationUnit == null && fTranslationUnit != null) {
try {
fParseTimeStamp = System.currentTimeMillis();
fASTTranslationUnit = fTranslationUnit.getLanguage().getASTTranslationUnit(fTranslationUnit, ILanguage.AST_SKIP_IF_NO_BUILD_INFO | ILanguage.AST_SKIP_INDEXED_HEADERS);
int style = ILanguage.AST_SKIP_IF_NO_BUILD_INFO | ILanguage.AST_SKIP_INDEXED_HEADERS;
fASTTranslationUnit = fTranslationUnit.getLanguage().getASTTranslationUnit(fTranslationUnit, style);
} catch (CoreException exc) {
result = exc.getStatus();
}
@ -431,7 +432,7 @@ public class CSourceViewerDecorationSupport
if (translationUnit == null) {
return Collections.EMPTY_LIST;
}
String fileName = translationUnit.getContainingFilename();
String fileName = translationUnit.getFilePath();
if (fileName == null) {
return Collections.EMPTY_LIST;
}