public SmartTagController(ISmartTagBroker broker, ITextView textView) { _broker = broker; _textView = textView; _textView.Caret.PositionChanged += Caret_PositionChanged; _sessionIsInvalid = true; }
public static ISmartTagBroker GetSmartTagBroker(this ITextView textView) { ISmartTagBroker tag = null; // The ISmartTagBroker property added in NemerleImplementsSmartTaggerProvider textView.Properties.TryGetProperty <ISmartTagBroker>(typeof(ISmartTagBroker), out tag); return(tag); }
internal KeyFilterFactory( ICompletionBroker completionBroker, ISignatureHelpBroker signatureHelpBroker, ISmartTagBroker smartTagBroker, IQuickInfoBroker quickInfoBroker) { _helperFactory = new DisplayWindowHelper(completionBroker, signatureHelpBroker, smartTagBroker, quickInfoBroker); }
public Dev14KeyProcessor(IWpfTextView wpfTextView, ILightBulbBroker lightBulbBroker, ISuggestedActionCategoryRegistryService suggestedActionCategoryRegistryService, ISmartTagBroker smartTagBroker, IPeekBroker peekBroker) { this.wpfTextView = wpfTextView; this.lightBulbBroker = lightBulbBroker; this.suggestedActionCategoryRegistryService = suggestedActionCategoryRegistryService; this.smartTagBroker = smartTagBroker; this.peekBroker = peekBroker; AddShortcuts(); }
private DisplayWindowHelper( ITextView view, ICompletionBroker completionBroker, ISignatureHelpBroker signatureHelpBroker, ISmartTagBroker smartTagBroker, IQuickInfoBroker quickInfoBroker) : this(completionBroker, signatureHelpBroker, smartTagBroker, quickInfoBroker) { this.TextView = view; }
private DisplayWindowHelper( ITextView view, ICompletionBroker completionBroker, ISignatureHelpBroker signatureHelpBroker, ISmartTagBroker smartTagBroker, IQuickInfoBroker quickInfoBroker) : this(completionBroker, signatureHelpBroker, smartTagBroker, quickInfoBroker) { TextView = view; }
internal DisplayWindowBrokerFactoryService( ICompletionBroker completionBroker, ISignatureHelpBroker signatureHelpBroker, ISmartTagBroker smartTagBroker, IQuickInfoBroker quickInfoBroker) { _completionBroker = completionBroker; _signatureHelpBroker = signatureHelpBroker; _smartTagBroker = smartTagBroker; _quickInfoBroker = quickInfoBroker; }
internal DisplayWindowHelper( ICompletionBroker completionBroker, ISignatureHelpBroker signatureHelpBroker, ISmartTagBroker smartTagBroker, IQuickInfoBroker quickInfoBroker) { _completionBroker = completionBroker; _signatureHelpBroker = signatureHelpBroker; _smartTagBroker = smartTagBroker; _quickInfoBroker = quickInfoBroker; }
internal DisplayWindowBroker( ITextView textView, ICompletionBroker completionBroker, ISignatureHelpBroker signatureHelpBroker, ISmartTagBroker smartTagBroker, IQuickInfoBroker quickInfoBroker) { _textView = textView; _completionBroker = completionBroker; _signatureHelpBroker = signatureHelpBroker; _smartTagBroker = smartTagBroker; _quickInfoBroker = quickInfoBroker; }
static internal SmartTagController CreateInstance(ISmartTagBroker broker, ITextView textView, IList<ITextBuffer> subjectBuffers) { Type key = typeof(SmartTagController); SmartTagController controller = null; if (textView.Properties.TryGetProperty(key, out controller)) { return controller; } controller = new SmartTagController(broker, textView); textView.Properties.AddProperty(key, controller); foreach (var buffer in subjectBuffers) { buffer.ChangedLowPriority += controller.SubjectBufferChangedLowPriority; } return controller; }
static internal SmartTagController CreateInstance(ISmartTagBroker broker, ITextView textView, IList <ITextBuffer> subjectBuffers) { Type key = typeof(SmartTagController); SmartTagController controller = null; if (textView.Properties.TryGetProperty(key, out controller)) { return(controller); } controller = new SmartTagController(broker, textView); textView.Properties.AddProperty(key, controller); foreach (var buffer in subjectBuffers) { buffer.ChangedLowPriority += controller.SubjectBufferChangedLowPriority; } return(controller); }
public SmartTagController(ISmartTagBroker broker, ITextView textView) { _broker = broker; _textView = textView; _textView.Caret.PositionChanged += Caret_PositionChanged; }