public override ICompletionListWindow ShowCompletionWindow(ICompletionItemList data)
        {
            if (data == null || !data.Items.Any())
            {
                return(null);
            }
            var window = new WabbitcodeCompletionWindow(this, textEditor.TextArea, data);

            textEditor.ShowCompletionWindow(window);
            return(window);
        }
Ejemplo n.º 2
0
 public CodeCompletionDataAdapter(WabbitcodeCompletionWindow 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;
 }
 internal void ShowCompletionWindow(WabbitcodeCompletionWindow window)
 {
     CloseExistingCompletionWindow();
     completionWindow = window;
     window.Closed   += delegate {
         completionWindow = null;
     };
     Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(
                                delegate {
         if (completionWindow == window)
         {
             window.Show();
         }
     }
                                ));
 }