コード例 #1
0
 public QuickInfoManager(ITextView textView, IQuickInfoBroker quickInfoBroker, QuickInfoModelProviderService quickInfoModelProviderService, VisualStudioSourceTextFactory sourceTextFactory)
 {
     _textView = textView;
     _quickInfoBroker = quickInfoBroker;
     _quickInfoModelProviderService = quickInfoModelProviderService;
     _sourceTextFactory = sourceTextFactory;
 }
コード例 #2
0
 public QuickInfoPresenterSession(IQuickInfoBroker quickInfoBroker, ITextView textView, ITextBuffer subjectBuffer, IQuickInfoSession sessionOpt)
 {
     _quickInfoBroker = quickInfoBroker;
     _textView = textView;
     _subjectBuffer = subjectBuffer;
     _editorSessionOpt = sessionOpt;
 }
コード例 #3
0
		internal KeyFilterFactory(
			ICompletionBroker completionBroker,
			ISignatureHelpBroker signatureHelpBroker,
			ISmartTagBroker smartTagBroker,
			IQuickInfoBroker quickInfoBroker)
		{
			_helperFactory = new DisplayWindowHelper(completionBroker, signatureHelpBroker, smartTagBroker, quickInfoBroker);
		}
コード例 #4
0
 public SpeedTypingTarget(CssSortPropertiesViewCreationListener componentContext, IVsTextView adapter, IWpfTextView textView)
 {
     this._dte = EditorExtensionsPackage.DTE;
     this._textView = textView;
     this._aggregator = componentContext.AggregatorService;
     this._broker = componentContext.CompletionBroker;
     this._QuickInfobroker = componentContext.QuickInfoBroker;
 }
コード例 #5
0
		public QuickInfoTriggerService(IQuickInfoBroker quickInfoBroker, ITextView textView) {
			if (quickInfoBroker == null)
				throw new ArgumentNullException(nameof(quickInfoBroker));
			if (textView == null)
				throw new ArgumentNullException(nameof(textView));
			this.quickInfoBroker = quickInfoBroker;
			this.textView = textView;
		}
コード例 #6
0
        internal SpringQuickInfoController(ITextView textView, IList<ITextBuffer> textBuffers, IQuickInfoBroker quickInfoBroker)
        {
            this.textView = textView;
            this.textBuffers = textBuffers;
            this.quickInfoBroker = quickInfoBroker;

            this.textView.MouseHover += new EventHandler<MouseHoverEventArgs>(OnTextViewMouseHover);
        }
コード例 #7
0
		public QuickInfoController(IQuickInfoBroker quickInfoBroker, ITextView textView) {
			if (quickInfoBroker == null)
				throw new ArgumentNullException(nameof(quickInfoBroker));
			if (textView == null)
				throw new ArgumentNullException(nameof(textView));
			this.textView = textView;
			this.quickInfoBroker = quickInfoBroker;
			textView.MouseHover += TextView_MouseHover;
		}
コード例 #8
0
 public TemplateCompletionController(
     PythonToolsService pyService,
     ITextView textView,
     IList<ITextBuffer> subjectBuffers,
     ICompletionBroker completionBroker,
     IQuickInfoBroker quickInfoBroker,
     ISignatureHelpBroker signatureBroker) :
     base(textView, subjectBuffers, completionBroker, quickInfoBroker, signatureBroker) {
     _pyService = pyService;
 }
コード例 #9
0
        private DisplayWindowHelper(
			ITextView view,
			ICompletionBroker completionBroker,
			ISignatureHelpBroker signatureHelpBroker,
			ISmartTagBroker smartTagBroker,
			IQuickInfoBroker quickInfoBroker)
            : this(completionBroker, signatureHelpBroker, smartTagBroker, quickInfoBroker)
        {
            this.TextView = view;
        }
コード例 #10
0
        internal DisplayWindowHelper(
			ICompletionBroker completionBroker,
			ISignatureHelpBroker signatureHelpBroker,
			ISmartTagBroker smartTagBroker,
			IQuickInfoBroker quickInfoBroker)
        {
            _completionBroker = completionBroker;
            _signatureHelpBroker = signatureHelpBroker;
            _smartTagBroker = smartTagBroker;
            _quickInfoBroker = quickInfoBroker;
        }
コード例 #11
0
ファイル: QuickInfoController.cs プロジェクト: Microsoft/RTVS
        public QuickInfoController(ITextView textView, IList<ITextBuffer> subjectBuffers, IQuickInfoBroker quickInfoBroker, ICoreShell shell) {
            _quickInfoBroker = quickInfoBroker;
            _textView = textView;
            _subjectBuffers = subjectBuffers;
            _shell = shell;

            _textView.MouseHover += OnViewMouseHover;
            _textView.TextBuffer.Changing += OnTextBufferChanging;

            ServiceManager.AddService(this, textView, shell);
        }
コード例 #12
0
        private RCompletionController(
            ITextView textView,
            IList<ITextBuffer> subjectBuffers,
            ICompletionBroker completionBroker,
            IQuickInfoBroker quickInfoBroker,
            ISignatureHelpBroker signatureBroker)
            : base(textView, subjectBuffers, completionBroker, quickInfoBroker, signatureBroker) {
            _textBuffer = subjectBuffers[0];

            ServiceManager.AddService<RCompletionController>(this, TextView);
        }
コード例 #13
0
ファイル: DisplayWindowBroker.cs プロジェクト: rschatz/VsVim
 internal DisplayWindowBroker(
     ITextView textView,
     ICompletionBroker completionBroker,
     ISignatureHelpBroker signatureHelpBroker,
     ISmartTagBroker smartTagBroker,
     IQuickInfoBroker quickInfoBroker)
 {
     _textView = textView;
     _completionBroker = completionBroker;
     _signatureHelpBroker = signatureHelpBroker;
     _smartTagBroker = smartTagBroker;
     _quickInfoBroker = quickInfoBroker;
 }
コード例 #14
0
 internal AsmQuickInfoController(
     ITextView textView,
     IList <ITextBuffer> subjectBuffers,
     IQuickInfoBroker quickInfoBroker,
     IBufferTagAggregatorFactoryService aggregatorFactory)
 {
     AsmDudeToolsStatic.Output_INFO(string.Format(AsmDudeToolsStatic.CultureUI, "{0}:constructor; file={1}", this.ToString(), AsmDudeToolsStatic.GetFilename(textView.TextBuffer)));
     this.textView_             = textView ?? throw new ArgumentNullException(nameof(textView));
     this.subjectBuffers_       = subjectBuffers ?? throw new ArgumentNullException(nameof(subjectBuffers));
     this.quickInfoBroker_      = quickInfoBroker ?? throw new ArgumentNullException(nameof(quickInfoBroker));
     this.aggregator_           = AsmDudeToolsStatic.GetOrCreate_Aggregator(textView.TextBuffer, aggregatorFactory);
     this.textView_.MouseHover += this.OnTextViewMouseHover;
 }
コード例 #15
0
        protected CompletionController(
            ITextView textView,
            IList<ITextBuffer> subjectBuffers,
            ICompletionBroker completionBroker,
            IQuickInfoBroker quickInfoBroker,
            ISignatureHelpBroker signatureBroker) {
            TextView = textView;

            SubjectBuffers = subjectBuffers;
            CompletionBroker = completionBroker;
            QuickInfoBroker = quickInfoBroker;
            SignatureBroker = signatureBroker;
        }
コード例 #16
0
        protected CompletionController(
            ITextView textView,
            IList <ITextBuffer> subjectBuffers,
            ICompletionBroker completionBroker,
            IQuickInfoBroker quickInfoBroker,
            ISignatureHelpBroker signatureBroker)
        {
            TextView = textView;

            SubjectBuffers   = subjectBuffers;
            CompletionBroker = completionBroker;
            QuickInfoBroker  = quickInfoBroker;
            SignatureBroker  = signatureBroker;
        }
コード例 #17
0
        public EventHookupCommandHandler(
            IInlineRenameService inlineRenameService,
            Microsoft.CodeAnalysis.Editor.Host.IWaitIndicator waitIndicator,
            IQuickInfoBroker quickInfoBroker,
            [Import(AllowDefault = true)] IHACK_EventHookupDismissalOnBufferChangePreventerService prematureDismissalPreventer,
            [ImportMany] IEnumerable <Lazy <IAsynchronousOperationListener, FeatureMetadata> > asyncListeners)
        {
            _inlineRenameService         = inlineRenameService;
            _waitIndicator               = waitIndicator;
            _prematureDismissalPreventer = prematureDismissalPreventer;
            _asyncListener               = new AggregateAsynchronousOperationListener(asyncListeners, FeatureAttribute.EventHookup);

            this.EventHookupSessionManager = new EventHookupSessionManager(prematureDismissalPreventer, quickInfoBroker);
        }
コード例 #18
0
        public EventHookupCommandHandler(
            IInlineRenameService inlineRenameService,
            Microsoft.CodeAnalysis.Editor.Host.IWaitIndicator waitIndicator,
            IQuickInfoBroker quickInfoBroker,
            [Import(AllowDefault = true)] IHACK_EventHookupDismissalOnBufferChangePreventerService prematureDismissalPreventer,
            IAsynchronousOperationListenerProvider listenerProvider)
        {
            _inlineRenameService         = inlineRenameService;
            _waitIndicator               = waitIndicator;
            _prematureDismissalPreventer = prematureDismissalPreventer;
            _asyncListener               = listenerProvider.GetListener(FeatureAttribute.EventHookup);

            this.EventHookupSessionManager = new EventHookupSessionManager(prematureDismissalPreventer, quickInfoBroker);
        }
コード例 #19
0
 public QuickInfoController(IQuickInfoBroker quickInfoBroker, ITextView textView)
 {
     if (quickInfoBroker == null)
     {
         throw new ArgumentNullException(nameof(quickInfoBroker));
     }
     if (textView == null)
     {
         throw new ArgumentNullException(nameof(textView));
     }
     this.textView        = textView;
     this.quickInfoBroker = quickInfoBroker;
     textView.MouseHover += TextView_MouseHover;
 }
コード例 #20
0
        public EventHookupCommandHandler(
            IInlineRenameService inlineRenameService,
            Microsoft.CodeAnalysis.Editor.Host.IWaitIndicator waitIndicator,
            IQuickInfoBroker quickInfoBroker,
            [Import(AllowDefault = true)] IHACK_EventHookupDismissalOnBufferChangePreventerService prematureDismissalPreventer,
            [ImportMany] IEnumerable<Lazy<IAsynchronousOperationListener, FeatureMetadata>> asyncListeners)
        {
            _inlineRenameService = inlineRenameService;
            _waitIndicator = waitIndicator;
            _prematureDismissalPreventer = prematureDismissalPreventer;
            _asyncListener = new AggregateAsynchronousOperationListener(asyncListeners, FeatureAttribute.EventHookup);

            this.EventHookupSessionManager = new EventHookupSessionManager(prematureDismissalPreventer, quickInfoBroker);
        }
コード例 #21
0
        public EventHookupCommandHandler(
            IInlineRenameService inlineRenameService,
#pragma warning disable CS0618 // IQuickInfo* is obsolete, tracked by https://github.com/dotnet/roslyn/issues/24094
            IQuickInfoBroker quickInfoBroker,
#pragma warning restore CS0618 // IQuickInfo* is obsolete, tracked by https://github.com/dotnet/roslyn/issues/24094
            [Import(AllowDefault = true)] IHACK_EventHookupDismissalOnBufferChangePreventerService prematureDismissalPreventer,
            IAsynchronousOperationListenerProvider listenerProvider)
        {
            _inlineRenameService         = inlineRenameService;
            _prematureDismissalPreventer = prematureDismissalPreventer;
            _asyncListener = listenerProvider.GetListener(FeatureAttribute.EventHookup);

            this.EventHookupSessionManager = new EventHookupSessionManager(prematureDismissalPreventer, quickInfoBroker);
        }
コード例 #22
0
        public static RCompletionController Create(
            ITextView textView,
            IList<ITextBuffer> subjectBuffers,
            ICompletionBroker completionBroker,
            IQuickInfoBroker quickInfoBroker,
            ISignatureHelpBroker signatureBroker) {
            RCompletionController completionController = null;

            completionController = ServiceManager.GetService<RCompletionController>(textView);
            if (completionController == null) {
                completionController = new RCompletionController(textView, subjectBuffers, completionBroker, quickInfoBroker, signatureBroker);
            }

            return completionController;
        }
コード例 #23
0
        private void RetriggerQuickInfoSession(IQuickInfoSession session, string packageName)
        {
            if (session != null && !session.IsDismissed)
            {
                session.Dismiss();
            }

            _lastPosition = -1;
            _packageName  = packageName;
            if (packageName != null)
            {
                IQuickInfoBroker broker = _coreShell.GetService <IQuickInfoBroker>();
                broker.TriggerQuickInfo(session.TextView, session.GetTriggerPoint(session.TextView.TextBuffer), session.TrackMouse);
            }
        }
コード例 #24
0
ファイル: QuickInfoSource.cs プロジェクト: zachwieja/RTVS
        private void RetriggerQuickInfoSession(IQuickInfoSession session, string packageName)
        {
            if (session != null && !session.IsDismissed)
            {
                session.Dismiss();
            }

            _lastPosition = -1;
            _packageName  = packageName;
            if (packageName != null)
            {
                IQuickInfoBroker broker = _catalog.ExportProvider.GetExport <IQuickInfoBroker>().Value;
                broker.TriggerQuickInfo(session.TextView, session.GetTriggerPoint(session.TextView.TextBuffer), session.TrackMouse);
            }
        }
コード例 #25
0
        private void OnViewClosed(object sender, System.EventArgs e)
        {
            if (!(sender is ITextView view))
            {
                return;
            }

            if (m_view != null)
            {
                m_view.Closed     -= OnViewClosed;
                m_view.MouseHover -= OnMouseHover;
            }
            m_view      = null;
            m_broker    = null;
            m_sh_broker = null;
        }
コード例 #26
0
ファイル: QuickInfoSession.cs プロジェクト: manojdjoshi/dnSpy
		public QuickInfoSession(QuickInfoState state, SnapshotPoint triggerPoint, bool trackMouse, IQuickInfoBroker quickInfoBroker, ITextView textView) {
			if (state.QuickInfoService == null)
				throw new ArgumentException();
			if (triggerPoint.Snapshot != state.Snapshot)
				throw new ArgumentNullException(nameof(triggerPoint));
			if (quickInfoBroker == null)
				throw new ArgumentNullException(nameof(quickInfoBroker));
			if (textView == null)
				throw new ArgumentNullException(nameof(textView));
			State = state;
			this.triggerPoint = triggerPoint;
			this.trackMouse = trackMouse;
			this.quickInfoBroker = quickInfoBroker;
			this.textView = textView;
			cancellationTokenSource = new CancellationTokenSource();
			cancellationToken = cancellationTokenSource.Token;
		}
コード例 #27
0
        public static RCompletionController Create(
            ITextView textView,
            IList <ITextBuffer> subjectBuffers,
            ICompletionBroker completionBroker,
            IQuickInfoBroker quickInfoBroker,
            ISignatureHelpBroker signatureBroker)
        {
            RCompletionController completionController = null;

            completionController = ServiceManager.GetService <RCompletionController>(textView);
            if (completionController == null)
            {
                completionController = new RCompletionController(textView, subjectBuffers, completionBroker, quickInfoBroker, signatureBroker);
            }

            return(completionController);
        }
コード例 #28
0
 public QuickInfoSession(QuickInfoState state, SnapshotPoint triggerPoint, bool trackMouse, IQuickInfoBroker quickInfoBroker, ITextView textView)
 {
     if (state.QuickInfoService == null)
     {
         throw new ArgumentException();
     }
     if (triggerPoint.Snapshot != state.Snapshot)
     {
         throw new ArgumentNullException(nameof(triggerPoint));
     }
     State                   = state;
     this.triggerPoint       = triggerPoint;
     this.trackMouse         = trackMouse;
     this.quickInfoBroker    = quickInfoBroker ?? throw new ArgumentNullException(nameof(quickInfoBroker));
     this.textView           = textView ?? throw new ArgumentNullException(nameof(textView));
     cancellationTokenSource = new CancellationTokenSource();
     cancellationToken       = cancellationTokenSource.Token;
 }
コード例 #29
0
 public DocumentViewerToolTipService(IImageManager imageManager, IDotNetImageManager dotNetImageManager, ICodeToolTipSettings codeToolTipSettings, Lazy <IDocumentViewerToolTipProvider, IDocumentViewerToolTipProviderMetadata>[] documentViewerToolTipProviders, IDocumentViewer documentViewer, IQuickInfoBroker quickInfoBroker, IClassificationFormatMap classificationFormatMap, IThemeClassificationTypeService themeClassificationTypeService)
 {
     if (imageManager == null)
     {
         throw new ArgumentNullException(nameof(imageManager));
     }
     if (dotNetImageManager == null)
     {
         throw new ArgumentNullException(nameof(dotNetImageManager));
     }
     if (codeToolTipSettings == null)
     {
         throw new ArgumentNullException(nameof(codeToolTipSettings));
     }
     if (documentViewerToolTipProviders == null)
     {
         throw new ArgumentNullException(nameof(documentViewerToolTipProviders));
     }
     if (documentViewer == null)
     {
         throw new ArgumentNullException(nameof(documentViewer));
     }
     if (quickInfoBroker == null)
     {
         throw new ArgumentNullException(nameof(quickInfoBroker));
     }
     if (classificationFormatMap == null)
     {
         throw new ArgumentNullException(nameof(classificationFormatMap));
     }
     if (themeClassificationTypeService == null)
     {
         throw new ArgumentNullException(nameof(themeClassificationTypeService));
     }
     this.imageManager                   = imageManager;
     this.dotNetImageManager             = dotNetImageManager;
     this.codeToolTipSettings            = codeToolTipSettings;
     this.documentViewerToolTipProviders = documentViewerToolTipProviders;
     this.documentViewer                 = documentViewer;
     this.quickInfoBroker                = quickInfoBroker;
     this.classificationFormatMap        = classificationFormatMap;
     this.themeClassificationTypeService = themeClassificationTypeService;
 }
コード例 #30
0
 public NSIntellisenseControllerProvider(
     [Import(typeof(SVsServiceProvider))] SVsServiceProvider spvs,
     ICompletionBroker icb,
     IQuickInfoBroker iqib,
     ISignatureHelpBroker ish,
     IVsEditorAdaptersFactoryService ieafs,
     IEditorOperationsFactoryService ieofs
     )
 {
     _serviceprovider_vs = spvs;
     //_serviceprovider_sys = NSLangServ._serviceprovider_sys;
     //_serviceprovider_sys = serviceProvider;
     _editoperationsfactory = ieofs;
     _signaturehelpbroker   = ish;
     //_textdocumentfactoryservice = itdfs;
     _completionbroker = icb;
     _adaptersfactory  = ieafs;
     _quickinfobroker  = iqib;
 }
コード例 #31
0
        internal AsmQuickInfoController(
            ITextView textView,
            IList <ITextBuffer> subjectBuffers,
            IQuickInfoBroker quickInfoBroker)
        {
            //AsmDudeToolsStatic.Output_INFO("AsmQuickInfoController:constructor: file=" + AsmDudeToolsStatic.GetFileName(textView.TextBuffer));
            this._textView             = textView;
            this._subjectBuffers       = subjectBuffers;
            this._quickInfoBroker      = quickInfoBroker;
            this._textView.MouseHover += this.OnTextViewMouseHover;

            /*this._textView.MouseHover += (o, e) => {
             *  SnapshotPoint? point = GetMousePosition(new SnapshotPoint(this._textView.TextSnapshot, e.Position));
             *  if (point.HasValue)
             *  {
             *      ITrackingPoint triggerPoint = point.Value.Snapshot.CreateTrackingPoint(point.Value.Position, PointTrackingMode.Positive);
             *      if (!this._quickInfoBroker.IsQuickInfoActive(this._textView))
             *      {
             *          this._quickInfoBroker.TriggerQuickInfo(this._textView, triggerPoint, false);
             *      }
             *  }
             * };
             */
        }
コード例 #32
0
 QuickInfoTriggerServiceProvider(IQuickInfoBroker quickInfoBroker)
 {
     this.quickInfoBroker = quickInfoBroker;
 }
コード例 #33
0
		QuickInfoTriggerServiceProvider(IQuickInfoBroker quickInfoBroker) {
			this.quickInfoBroker = quickInfoBroker;
		}
コード例 #34
0
 public QuickInfoPresenter(IQuickInfoBroker quickInfoBroker)
 {
     _quickInfoBroker = quickInfoBroker;
 }
 public QuickInfoPresenterSession(IQuickInfoBroker quickInfoBroker, ITextView textView, ITextBuffer subjectBuffer)
     : this(quickInfoBroker, textView, subjectBuffer, null)
 {
 }
コード例 #36
0
 public QuickInfoPresenterSession(IThreadingContext threadingContext, IQuickInfoBroker quickInfoBroker, DeferredContentFrameworkElementFactory elementFactory, ITextView textView, ITextBuffer subjectBuffer)
     : this(threadingContext, quickInfoBroker, elementFactory, textView, subjectBuffer, null)
 {
 }
コード例 #37
0
 internal AsmQuickInfoController(ITextView textView, IList <ITextBuffer> subjectBuffers, IQuickInfoBroker quickInfoBroker)
 {
     _textView             = textView;
     _subjectBuffers       = subjectBuffers;
     _quickInfoBroker      = quickInfoBroker;
     _textView.MouseHover += OnTextViewMouseHover;
 }
コード例 #38
0
 internal EventHookupSessionManager(IHACK_EventHookupDismissalOnBufferChangePreventerService prematureDismissalPreventer, IQuickInfoBroker quickInfoBroker)
 {
     _prematureDismissalPreventer = prematureDismissalPreventer;
     _quickInfoBroker             = quickInfoBroker;
 }
 public IntellisenseControllerProvider(IQuickInfoBroker quickInfoBroker) {
     QuickInfoBroker = quickInfoBroker;
 }
コード例 #40
0
 public TemplateCompletionControllerProvider([Import(typeof(SVsServiceProvider))]IServiceProvider serviceProvider, ICompletionBroker completionBroker, IQuickInfoBroker quickInfoBroker, ISignatureHelpBroker signatureHelpBroker) {
     _completionBroker = completionBroker;
     _quickInfoBroker = quickInfoBroker;
     _signatureHelpBroker = signatureHelpBroker;
     _pyService = (PythonToolsService)serviceProvider.GetService(typeof(PythonToolsService));
 }
コード例 #41
0
ファイル: QuickInfoManager.cs プロジェクト: tgjones/HlslTools
 public QuickInfoManager(ITextView textView, IQuickInfoBroker quickInfoBroker, QuickInfoModelProviderService quickInfoModelProviderService)
 {
     _textView = textView;
     _quickInfoBroker = quickInfoBroker;
     _quickInfoModelProviderService = quickInfoModelProviderService;
 }
 public TemplateCompletionControllerProvider([Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider, ICompletionBroker completionBroker, IQuickInfoBroker quickInfoBroker, ISignatureHelpBroker signatureHelpBroker)
 {
     _completionBroker    = completionBroker;
     _quickInfoBroker     = quickInfoBroker;
     _signatureHelpBroker = signatureHelpBroker;
     _pyService           = (PythonToolsService)serviceProvider.GetService(typeof(PythonToolsService));
 }
コード例 #43
0
 internal EventHookupSessionManager(IHACK_EventHookupDismissalOnBufferChangePreventerService prematureDismissalPreventer, IQuickInfoBroker quickInfoBroker)
 {
     _prematureDismissalPreventer = prematureDismissalPreventer;
     _quickInfoBroker = quickInfoBroker;
 }
コード例 #44
0
 public QuickInfoControllerProvider(IQuickInfoBroker quickInfoBroker, ICoreShell shell) {
     _quickInfoBroker = quickInfoBroker;
     _shell = shell;
 }
コード例 #45
0
 DocumentViewerToolTipServiceProvider(IImageManager imageManager, IDotNetImageManager dotNetImageManager, ICodeToolTipSettings codeToolTipSettings, IQuickInfoBroker quickInfoBroker, IClassificationFormatMapService classificationFormatMapService, IThemeClassificationTypeService themeClassificationTypeService, [ImportMany] IEnumerable <Lazy <IDocumentViewerToolTipProvider, IDocumentViewerToolTipProviderMetadata> > documentViewerToolTipProviders)
 {
     this.imageManager                   = imageManager;
     this.dotNetImageManager             = dotNetImageManager;
     this.codeToolTipSettings            = codeToolTipSettings;
     this.quickInfoBroker                = quickInfoBroker;
     this.classificationFormatMapService = classificationFormatMapService;
     this.themeClassificationTypeService = themeClassificationTypeService;
     this.documentViewerToolTipProviders = documentViewerToolTipProviders.OrderBy(a => a.Metadata.Order).ToArray();
 }
コード例 #46
0
        public QuickInfoController(ITextView textView, IList <ITextBuffer> subjectBuffers, IQuickInfoBroker quickInfoBroker, ICoreShell shell)
        {
            _quickInfoBroker = quickInfoBroker;
            _textView        = textView;
            _subjectBuffers  = subjectBuffers;
            _shell           = shell;

            _textView.MouseHover          += OnViewMouseHover;
            _textView.TextBuffer.Changing += OnTextBufferChanging;

            ServiceManager.AddService(this, textView, shell);
        }
コード例 #47
0
 public QuickInfoPresenter(IQuickInfoBroker quickInfoBroker, QuickInfoContentConverter contentConverter)
 {
     _quickInfoBroker  = quickInfoBroker;
     _contentConverter = contentConverter;
 }
コード例 #48
0
 public QuickInfoManager(ITextView textView, IQuickInfoBroker quickInfoBroker, QuickInfoModelProviderService quickInfoModelProviderService)
 {
     _textView        = textView;
     _quickInfoBroker = quickInfoBroker;
     _quickInfoModelProviderService = quickInfoModelProviderService;
 }
コード例 #49
0
		public DocumentViewerToolTipService(IDotNetImageService dotNetImageService, ICodeToolTipSettings codeToolTipSettings, Lazy<IDocumentViewerToolTipProvider, IDocumentViewerToolTipProviderMetadata>[] documentViewerToolTipProviders, IDocumentViewer documentViewer, IQuickInfoBroker quickInfoBroker, IClassificationFormatMap classificationFormatMap, IThemeClassificationTypeService themeClassificationTypeService, IDecompilerService decompilerService) {
			if (dotNetImageService == null)
				throw new ArgumentNullException(nameof(dotNetImageService));
			if (codeToolTipSettings == null)
				throw new ArgumentNullException(nameof(codeToolTipSettings));
			if (documentViewerToolTipProviders == null)
				throw new ArgumentNullException(nameof(documentViewerToolTipProviders));
			if (documentViewer == null)
				throw new ArgumentNullException(nameof(documentViewer));
			if (quickInfoBroker == null)
				throw new ArgumentNullException(nameof(quickInfoBroker));
			if (classificationFormatMap == null)
				throw new ArgumentNullException(nameof(classificationFormatMap));
			if (themeClassificationTypeService == null)
				throw new ArgumentNullException(nameof(themeClassificationTypeService));
			if (decompilerService == null)
				throw new ArgumentNullException(nameof(decompilerService));
			this.dotNetImageService = dotNetImageService;
			this.codeToolTipSettings = codeToolTipSettings;
			this.documentViewerToolTipProviders = documentViewerToolTipProviders;
			this.documentViewer = documentViewer;
			this.quickInfoBroker = quickInfoBroker;
			this.classificationFormatMap = classificationFormatMap;
			this.themeClassificationTypeService = themeClassificationTypeService;
			this.decompilerService = decompilerService;
		}
コード例 #50
0
		QuickInfoControllerProvider(IQuickInfoBroker quickInfoBroker) {
			this.quickInfoBroker = quickInfoBroker;
		}
コード例 #51
0
		DocumentViewerToolTipServiceProvider(IDotNetImageService dotNetImageService, ICodeToolTipSettings codeToolTipSettings, IQuickInfoBroker quickInfoBroker, IClassificationFormatMapService classificationFormatMapService, IThemeClassificationTypeService themeClassificationTypeService, IDecompilerService decompilerService, [ImportMany] IEnumerable<Lazy<IDocumentViewerToolTipProvider, IDocumentViewerToolTipProviderMetadata>> documentViewerToolTipProviders) {
			this.dotNetImageService = dotNetImageService;
			this.codeToolTipSettings = codeToolTipSettings;
			this.quickInfoBroker = quickInfoBroker;
			this.classificationFormatMapService = classificationFormatMapService;
			this.themeClassificationTypeService = themeClassificationTypeService;
			this.decompilerService = decompilerService;
			this.documentViewerToolTipProviders = documentViewerToolTipProviders.OrderBy(a => a.Metadata.Order).ToArray();
		}
コード例 #52
0
 QuickInfoControllerProvider(IQuickInfoBroker quickInfoBroker)
 {
     this.quickInfoBroker = quickInfoBroker;
 }
コード例 #53
0
 public QuickInfoPresenterSession(IQuickInfoBroker quickInfoBroker, ITextView textView, ITextBuffer subjectBuffer)
     : this(quickInfoBroker, textView, subjectBuffer, null)
 {
 }
コード例 #54
0
 public SignatureHelpCommand(IWpfTextView view, ISignatureHelpBroker signaturehelpBroker, IQuickInfoBroker quickInfoBroker)
 {
     _view = view;
     _signaturehelpBroker = signaturehelpBroker;
     _quickInfoBroker     = quickInfoBroker;
 }
コード例 #55
0
ファイル: VarAdorner.cs プロジェクト: RyanMilligan/PowerTools
 public VarAdorner(IWpfTextView view, VarTag tag, IQuickInfoBroker quickInfo)
 {
     tag = Tag;
     View = view;
     QuickInfo = quickInfo;
 }
コード例 #56
0
ファイル: QuickInfoPresenter.cs プロジェクト: khm1600/CJing
 public QuickInfoPresenter(IThreadingContext threadingContext, IQuickInfoBroker quickInfoBroker, DeferredContentFrameworkElementFactory elementFactory)
     : base(threadingContext)
 {
     _quickInfoBroker = quickInfoBroker;
     _elementFactory  = elementFactory;
 }
コード例 #57
0
ファイル: ViewQuickInfoBroker.cs プロジェクト: skrutsick/RTVS
 public ViewQuickInfoBroker(IQuickInfoBroker quickInfoBroker)
 {
     _quickInfoBroker = quickInfoBroker;
 }
コード例 #58
0
        internal SpringQuickInfoController(ITextView textView, IList <ITextBuffer> textBuffers, IQuickInfoBroker quickInfoBroker)
        {
            this.textView        = textView;
            this.textBuffers     = textBuffers;
            this.quickInfoBroker = quickInfoBroker;

            this.textView.MouseHover += new EventHandler <MouseHoverEventArgs>(OnTextViewMouseHover);
        }