Example #1
0
        public new List <codeEditor.CodeEditor.PopupItem> GetPopupItems(int editId, int index)
        {
            if (TclParsedDocument == null)
            {
                return(null);
            }
            if (TclParsedDocument.EditID != editId)
            {
                return(null);
            }

            int headIndex, length;

            CodeDocument.GetWord(index, out headIndex, out length);
            string text = CodeDocument.CreateString(headIndex, length);

            return(TclParsedDocument.GetPopupItems(index, text));
        }