1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 01:06:01 +02:00

Fix for 173246 (Cannot open editor for external translation units)

This commit is contained in:
Chris Recoskie 2007-02-07 16:07:20 +00:00
parent 505c818d23
commit 09a6509ebf

View file

@ -683,7 +683,11 @@ public class TranslationUnit extends Openable implements ITranslationUnit {
}
public ILanguage getLanguage() throws CoreException {
ILanguage language = LanguageManager.getInstance().getLanguageForFile(getFile());
ILanguage language = null;
language = LanguageManager.getInstance().getLanguageForFile(getLocation(), getCProject().getProject());
return language;
}