mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-01 21:35:40 +02:00
bug 311429: Inconsistent showing of "Languages" in Paths&Symbols tab
This commit is contained in:
parent
cc39535a4b
commit
499b106541
2 changed files with 1 additions and 5 deletions
|
@ -31,7 +31,7 @@ public class MultiLanguageSetting extends MultiItemsHolder implements ICLanguage
|
||||||
* @see org.eclipse.cdt.core.settings.model.ICLanguageSetting#getLanguageId()
|
* @see org.eclipse.cdt.core.settings.model.ICLanguageSetting#getLanguageId()
|
||||||
*/
|
*/
|
||||||
public String getLanguageId() {
|
public String getLanguageId() {
|
||||||
return null; // IDs are different.
|
return items[0].getLanguageId(); // Assuming language is the same.
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
|
|
@ -396,10 +396,6 @@ public abstract class AbstractLangsListTab extends AbstractCPropertyTab {
|
||||||
if ((langSetting.getSupportedEntryKinds() & getKind()) != 0) {
|
if ((langSetting.getSupportedEntryKinds() & getKind()) != 0) {
|
||||||
TreeItem t = new TreeItem(langTree, SWT.NONE);
|
TreeItem t = new TreeItem(langTree, SWT.NONE);
|
||||||
String langId = langSetting.getLanguageId();
|
String langId = langSetting.getLanguageId();
|
||||||
if (langId==null && (langSetting instanceof MultiLanguageSetting)) {
|
|
||||||
ICLanguageSetting item1 = (ICLanguageSetting) ((MultiLanguageSetting)langSetting).getItems()[0];
|
|
||||||
langId = item1.getLanguageId();
|
|
||||||
}
|
|
||||||
if (langId != null && !langId.equals(EMPTY_STR)) {
|
if (langId != null && !langId.equals(EMPTY_STR)) {
|
||||||
// Bug #178033: get language name via LangManager.
|
// Bug #178033: get language name via LangManager.
|
||||||
ILanguageDescriptor langDes = LanguageManager.getInstance().getLanguageDescriptor(langId);
|
ILanguageDescriptor langDes = LanguageManager.getInstance().getLanguageDescriptor(langId);
|
||||||
|
|
Loading…
Add table
Reference in a new issue