private string GetText()

in src/dotnet/JetBrains.PresentationAssistant/ReSharperActionShortcutProvider.cs [116:145]


        private string GetText(string text, string actionId)
        {
            switch (actionId)
            {
                case "TextControl.Enter":
                    return null;

                    // TODO: "Insert Live Template"
                    // We only get this when someone uses Tab to insert a live template.
                    // It would be nice to recognise that. We can't assume it, as any other
                    // tab handler could be mis-recognised
                case "TextControl.Tab":
                    return "Tab";

                case "Synthetic.NextHotspot":
                    return "Next Hotspot";

                case "Synthetic.PreviousHotspot":
                    return "Previous Hotspot";

                case "Synthetic.CompleteItem.Enter":
                    return GetEnterCompleteItemText();

                case "Synthetic.CompleteItem.Tab":
                    return GetTabCompleteItemText();
            }

            var trim = MnemonicStore.RemoveMnemonicMark(text).Trim(TrimCharacters);
            return string.IsNullOrEmpty(trim) ? actionId : trim;
        }