mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-211444 incorrect variants in drop-down for WrapOnTyping option
GitOrigin-RevId: 0d083004e7ec94612ef40eda23a6f1eb3db337b9
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2d25843b93
commit
aa0c19fe12
+3
-2
@@ -44,14 +44,15 @@ class MarginOptionsUtil {
|
||||
}
|
||||
|
||||
static void customizeWrapOnTypingCombo(@NotNull JComboBox<String> wrapOnTypingCombo, @NotNull CodeStyleSettings settings) {
|
||||
wrapOnTypingCombo.setRenderer(SimpleListCellRenderer.create((label, value, index) -> {
|
||||
wrapOnTypingCombo.setRenderer(SimpleListCellRenderer.create("", value -> {
|
||||
for (int i = 0; i < CodeStyleSettingsCustomizable.WRAP_ON_TYPING_VALUES.length; i++) {
|
||||
if (CodeStyleSettingsCustomizable.WRAP_ON_TYPING_VALUES[i] == CommonCodeStyleSettings.WrapOnTyping.DEFAULT.intValue) {
|
||||
if (CodeStyleSettingsCustomizable.WRAP_ON_TYPING_OPTIONS[i].equals(value)) {
|
||||
label.setText(getDefaultWrapOnTypingText(settings));
|
||||
return getDefaultWrapOnTypingText(settings);
|
||||
}
|
||||
}
|
||||
}
|
||||
return value;
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user