public static String getShortcutText(Shortcut shortcut) {
String s = "";
if (shortcut instanceof KeyboardShortcut) {
KeyboardShortcut keyboardShortcut = (KeyboardShortcut)shortcut;
String acceleratorText = getKeystrokeText(keyboardShortcut.getFirstKeyStroke());
if (acceleratorText.length() > 0) {
s = acceleratorText;
}
acceleratorText = getKeystrokeText(keyboardShortcut.getSecondKeyStroke());
if (acceleratorText.length() > 0) {
s += ", " + acceleratorText;
}
}
else if (shortcut instanceof MouseShortcut) {