Exemplo n.º 1
0
 /// <summary>
 /// Attaches events for invoking Statement completion
 /// </summary>
 /// <param name="subjectBuffers"></param>
 /// <param name="textView"></param>
 /// <param name="completionBrokerMap"></param>
 public IntellisenseController(IntellisenseControllerProvider provider, IList <ITextBuffer> subjectBuffers, ITextView textView)
 {
     _subjectBuffers       = subjectBuffers;
     _textView             = textView;
     _provider             = provider;
     _editOps              = provider._EditOperationsFactory.GetEditorOperations(textView);
     _incSearch            = provider._IncrementalSearch.GetIncrementalSearch(textView);
     _textView.MouseHover += new EventHandler <MouseHoverEventArgs>(TextViewMouseHover);
     textView.Properties.AddProperty(typeof(IntellisenseController), this);  // added so our key processors can get back to us
 }
Exemplo n.º 2
0
 /// <summary>
 /// Attaches events for invoking Statement completion 
 /// </summary>
 /// <param name="subjectBuffers"></param>
 /// <param name="textView"></param>
 /// <param name="completionBrokerMap"></param>
 public IntellisenseController(IntellisenseControllerProvider provider, IList<ITextBuffer> subjectBuffers, ITextView textView)
 {
     _subjectBuffers = subjectBuffers;
     _textView = textView;
     _provider = provider;
     _editOps = provider._EditOperationsFactory.GetEditorOperations(textView);
     _incSearch = provider._IncrementalSearch.GetIncrementalSearch(textView);
     _textView.MouseHover += new EventHandler<MouseHoverEventArgs>(TextViewMouseHover);
     textView.Properties.AddProperty(typeof(IntellisenseController), this);  // added so our key processors can get back to us
 }