GetOrCreate() public static method

public static GetOrCreate ( IWpfTextView textView, IVsEditorAdaptersFactoryService adapterService, IVsDebugger debugger ) : DataTipTextViewFilter
textView IWpfTextView
adapterService IVsEditorAdaptersFactoryService
debugger IVsDebugger
return DataTipTextViewFilter
コード例 #1
0
        public void SubjectBuffersConnected(IWpfTextView textView, ConnectionReason reason, Collection <ITextBuffer> subjectBuffers)
        {
            if (!textView.TextBuffer.ContentType.IsOfType(RContentTypeDefinition.ContentType))
            {
                return;
            }

            var adapterService = VsAppShell.Current.ExportProvider.GetExportedValue <IVsEditorAdaptersFactoryService>();
            var debugger       = VsAppShell.Current.GetGlobalService <IVsDebugger>();

            DataTipTextViewFilter.GetOrCreate(textView, adapterService, debugger);
        }
コード例 #2
0
        public void SubjectBuffersConnected(IWpfTextView textView, ConnectionReason reason, Collection <ITextBuffer> subjectBuffers)
        {
            if (!textView.TextBuffer.ContentType.IsOfType(RContentTypeDefinition.ContentType))
            {
                return;
            }

            VsAppShell.Current.DispatchOnUIThread(() => {
                var debugger = VsAppShell.Current.GetGlobalService <IVsDebugger>();
                DataTipTextViewFilter.GetOrCreate(textView, _adaptersFactoryService, debugger);
            });
        }
コード例 #3
0
        public void SubjectBuffersConnected(IWpfTextView textView, ConnectionReason reason, Collection <ITextBuffer> subjectBuffers)
        {
            if (!textView.TextBuffer.ContentType.IsOfType(RContentTypeDefinition.ContentType))
            {
                return;
            }

            _coreShell.MainThread().Post(() => {
                var debugger = _coreShell.GetService <IVsDebugger>();
                var adaptersFactoryService = _coreShell.GetService <IVsEditorAdaptersFactoryService>();
                DataTipTextViewFilter.GetOrCreate(textView, adaptersFactoryService, debugger);
            });
        }