mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
RESOLVED - bug 173308: ClassCastException from LanguageManager.getLanguageForFile (?)
https://bugs.eclipse.org/bugs/show_bug.cgi?id=173308
This commit is contained in:
parent
e1ca2d84ef
commit
d2175f1b2e
1 changed files with 2 additions and 2 deletions
|
@ -320,7 +320,7 @@ public class LanguageManager {
|
|||
// Project-level mappings
|
||||
LanguageMappingConfiguration mappings = getLanguageMappingConfiguration(project);
|
||||
if (mappings != null) {
|
||||
String id = (String) mappings.getProjectMappings().get(contentType);
|
||||
String id = (String) mappings.getProjectMappings().get(contentTypeID);
|
||||
if (id != null) {
|
||||
return getLanguage(id);
|
||||
}
|
||||
|
@ -365,7 +365,7 @@ public class LanguageManager {
|
|||
// Project-level mappings
|
||||
LanguageMappingConfiguration mappings = getLanguageMappingConfiguration(project);
|
||||
if (mappings != null) {
|
||||
String id = (String) mappings.getProjectMappings().get(contentType);
|
||||
String id = (String) mappings.getProjectMappings().get(contentTypeID);
|
||||
if (id != null) {
|
||||
return getLanguage(id);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue