The code completion window.
Наследование: ICSharpCode.AvalonEdit.CodeCompletion.CompletionWindow, ICompletionListWindow
 public override ICompletionListWindow ShowCompletionWindow(ICompletionItemList data)
 {
     if (data == null || !data.Items.Any())
         return null;
     CodeCompletionWindow window = new CodeCompletionWindow(this, this.TextEditor.TextArea, data);
     textEditor.ShowCompletionWindow(window);
     return window;
 }
Пример #2
0
        public override ICompletionListWindow ShowCompletionWindow(ICompletionItemList data)
        {
            if (data == null || !data.Items.Any())
            {
                return(null);
            }
            CodeCompletionWindow window = new CodeCompletionWindow(this, this.TextEditor.TextArea, data);

            textEditor.ShowCompletionWindow(window);
            return(window);
        }
Пример #3
0
 public CodeCompletionDataAdapter(CodeCompletionWindow window, ICompletionItem item)
 {
     if (window == null)
     {
         throw new ArgumentNullException("window");
     }
     if (item == null)
     {
         throw new ArgumentNullException("item");
     }
     this.window = window;
     this.item   = item;
     this.fancyCompletionItem = item as IFancyCompletionItem;
 }
        //public SharpDevelopInsightWindow ActiveInsightWindow {
        //    get { return insightWindow; }
        //}

        internal void ShowCompletionWindow(CodeCompletionWindow window)
        {
            CloseExistingCompletionWindow();
            completionWindow = window;
            window.Closed   += delegate {
                completionWindow = null;
            };
            Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(
                                       delegate {
                if (completionWindow == window)
                {
                    window.Show();
                }
            }
                                       ));
        }
Пример #5
0
 public CodeCompletionDataAdapter(CodeCompletionWindow window, ICompletionItem item)
 {
     if (window == null)
         throw new ArgumentNullException("window");
     if (item == null)
         throw new ArgumentNullException("item");
     this.window = window;
     this.item = item;
     this.fancyCompletionItem = item as IFancyCompletionItem;
 }