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:
parent
505c818d23
commit
09a6509ebf
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue