OpenIDE.UI.RunCommandForm.autoCompleteCommand C# (CSharp) Method

autoCompleteCommand() private method

private autoCompleteCommand ( ) : void
return void
        private void autoCompleteCommand()
        {
            var selection = informationList.SelectedItems[0].Text;
            var autocomplete = new CommandAutoCompletion()
                .AutoComplete(
                    selection,
                    getContent());
            if (autocomplete.Length == 0)
                return;
            if (!commandEndsWithSpace(selection))
                autocomplete += " ";
            textBoxSearch.SelectedText = autocomplete;
        }