mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +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 {
|
public ILanguage getLanguage() throws CoreException {
|
||||||
ILanguage language = LanguageManager.getInstance().getLanguageForFile(getFile());
|
|
||||||
|
ILanguage language = null;
|
||||||
|
|
||||||
|
language = LanguageManager.getInstance().getLanguageForFile(getLocation(), getCProject().getProject());
|
||||||
|
|
||||||
return language;
|
return language;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue