mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
ApplicationBundle.message("custom.option") is used where possible
GitOrigin-RevId: 15cd305ac01d83ebe14d7fa1907c327770a3f206
This commit is contained in:
committed by
intellij-monorepo-bot
parent
84c1a10be9
commit
01b85a27d7
+2
-1
@@ -6,6 +6,7 @@ import com.intellij.ide.DataManager;
|
||||
import com.intellij.openapi.actionSystem.ActionManager;
|
||||
import com.intellij.openapi.actionSystem.IdeActions;
|
||||
import com.intellij.openapi.actionSystem.Shortcut;
|
||||
import com.intellij.openapi.application.ApplicationBundle;
|
||||
import com.intellij.openapi.keymap.KeymapUtil;
|
||||
import com.intellij.openapi.keymap.impl.ui.KeymapPanel;
|
||||
import com.intellij.openapi.options.ShowSettingsUtil;
|
||||
@@ -71,7 +72,7 @@ public class TemplateExpandShortcutPanel extends JPanel {
|
||||
if (value == CUSTOM) {
|
||||
Shortcut[] shortcuts = getCurrentCustomShortcuts();
|
||||
String shortcutText = shortcuts.length == 0 ? "" : KeymapUtil.getShortcutsText(shortcuts);
|
||||
return StringUtil.isEmpty(shortcutText) ? "Custom..." : "Custom (" + shortcutText + ")";
|
||||
return StringUtil.isEmpty(shortcutText) ? ApplicationBundle.message("custom.option") : "Custom (" + shortcutText + ")";
|
||||
}
|
||||
return value;
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user