mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
use common code style settings from grandparent language
This commit is contained in:
+3
-2
@@ -61,8 +61,9 @@ public class CommonCodeStyleSettingsManager implements JDOMExternalizable {
|
||||
public CommonCodeStyleSettings getCommonSettings(@Nullable Language lang) {
|
||||
Map<Language, CommonCodeStyleSettings> commonSettingsMap = getCommonSettingsMap();
|
||||
CommonCodeStyleSettings settings = commonSettingsMap.get(lang);
|
||||
if (settings == null && lang != null) {
|
||||
settings = commonSettingsMap.get(lang.getBaseLanguage());
|
||||
while (settings == null && lang != null) {
|
||||
lang = lang.getBaseLanguage();
|
||||
settings = commonSettingsMap.get(lang);
|
||||
}
|
||||
if (settings != null) {
|
||||
return settings;
|
||||
|
||||
Reference in New Issue
Block a user