mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do not show parens for empty list of shortcuts
This commit is contained in:
@@ -400,10 +400,10 @@ public abstract class ChooseByNameBase {
|
||||
|
||||
final String checkBoxName = myModel.getCheckBoxName();
|
||||
myCheckBox = new JCheckBox(checkBoxName != null ? checkBoxName +
|
||||
(myCheckBoxShortcut != null ? " (" +
|
||||
KeymapUtil
|
||||
.getShortcutsText(myCheckBoxShortcut.getShortcuts()) +
|
||||
")" : "") : "");
|
||||
(myCheckBoxShortcut != null && myCheckBoxShortcut.getShortcuts().length > 0
|
||||
? " (" + KeymapUtil.getShortcutsText(myCheckBoxShortcut.getShortcuts()) + ")"
|
||||
: "")
|
||||
: "");
|
||||
myCheckBox.setAlignmentX(SwingConstants.RIGHT);
|
||||
|
||||
if (!SystemInfo.isMac) {
|
||||
|
||||
Reference in New Issue
Block a user