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; }
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); }
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(); } } )); }
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; }