Esempio n. 1
0
 public SmartTagController(ISmartTagBroker broker, ITextView textView)
 {
     _broker = broker;
     _textView = textView;
     _textView.Caret.PositionChanged += Caret_PositionChanged;
     _sessionIsInvalid = true;
 }
Esempio n. 2
0
        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);
 }
Esempio n. 4
0
		internal KeyFilterFactory(
			ICompletionBroker completionBroker,
			ISignatureHelpBroker signatureHelpBroker,
			ISmartTagBroker smartTagBroker,
			IQuickInfoBroker quickInfoBroker)
		{
			_helperFactory = new DisplayWindowHelper(completionBroker, signatureHelpBroker, smartTagBroker, quickInfoBroker);
		}
Esempio n. 5
0
		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;
        }
Esempio n. 7
0
 private DisplayWindowHelper(
     ITextView view,
     ICompletionBroker completionBroker,
     ISignatureHelpBroker signatureHelpBroker,
     ISmartTagBroker smartTagBroker,
     IQuickInfoBroker quickInfoBroker)
     : this(completionBroker, signatureHelpBroker, smartTagBroker, quickInfoBroker)
 {
     TextView = view;
 }
Esempio n. 8
0
        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();
        }
Esempio n. 9
0
 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;
        }
Esempio n. 11
0
 internal DisplayWindowBroker(
     ITextView textView,
     ICompletionBroker completionBroker,
     ISignatureHelpBroker signatureHelpBroker,
     ISmartTagBroker smartTagBroker,
     IQuickInfoBroker quickInfoBroker)
 {
     _textView = textView;
     _completionBroker = completionBroker;
     _signatureHelpBroker = signatureHelpBroker;
     _smartTagBroker = smartTagBroker;
     _quickInfoBroker = quickInfoBroker;
 }
Esempio n. 12
0
 internal DisplayWindowBroker(
     ITextView textView,
     ICompletionBroker completionBroker,
     ISignatureHelpBroker signatureHelpBroker,
     ISmartTagBroker smartTagBroker,
     IQuickInfoBroker quickInfoBroker)
 {
     _textView            = textView;
     _completionBroker    = completionBroker;
     _signatureHelpBroker = signatureHelpBroker;
     _smartTagBroker      = smartTagBroker;
     _quickInfoBroker     = quickInfoBroker;
 }
Esempio n. 13
0
        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;
        }
Esempio n. 14
0
        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);
        }
Esempio n. 15
0
 public SmartTagController(ISmartTagBroker broker, ITextView textView)
 {
     _broker   = broker;
     _textView = textView;
     _textView.Caret.PositionChanged += Caret_PositionChanged;
 }
Esempio n. 16
0
 public SmartTagController(ISmartTagBroker broker, ITextView textView) {
     _broker = broker;
     _textView = textView;
     _textView.Caret.PositionChanged += Caret_PositionChanged;
 }