Example #1
0
        public StreamingFindUsagesPresenter(
            IThreadingContext threadingContext,
            VisualStudioWorkspace workspace,
            Shell.SVsServiceProvider serviceProvider,
            ITextBufferFactoryService textBufferFactoryService,
            ITextEditorFactoryService textEditorFactoryService,
            IContentTypeRegistryService contentTypeRegistryService,
            DeferredContentFrameworkElementFactory frameworkElementFactory,
            ClassificationTypeMap typeMap,
            IEditorFormatMapService formatMapService,
            IClassificationFormatMapService classificationFormatMapService)
            : base(threadingContext)
        {
            _workspace                             = workspace;
            _serviceProvider                       = serviceProvider;
            TextBufferFactoryService               = textBufferFactoryService;
            ContentTypeRegistryService             = contentTypeRegistryService;
            DeferredContentFrameworkElementFactory = frameworkElementFactory;

            TextEditorFactoryService = textEditorFactoryService;
            TypeMap                 = typeMap;
            FormatMapService        = formatMapService;
            ClassificationFormatMap = classificationFormatMapService.GetClassificationFormatMap("tooltip");

            _vsFindAllReferencesService = (IFindAllReferencesService)_serviceProvider.GetService(typeof(SVsFindAllReferences));
        }
 public QuickInfoPresenterSession(IQuickInfoBroker quickInfoBroker, DeferredContentFrameworkElementFactory elementFactory, ITextView textView, ITextBuffer subjectBuffer, IQuickInfoSession sessionOpt)
 {
     _quickInfoBroker  = quickInfoBroker;
     _elementFactory   = elementFactory;
     _textView         = textView;
     _subjectBuffer    = subjectBuffer;
     _editorSessionOpt = sessionOpt;
 }
Example #3
0
 public QuickInfoPresenter(IThreadingContext threadingContext, IQuickInfoBroker quickInfoBroker, DeferredContentFrameworkElementFactory elementFactory)
     : base(threadingContext)
 {
     _quickInfoBroker = quickInfoBroker;
     _elementFactory  = elementFactory;
 }
        public FrameworkElement CreateFrameworkElement(IDeferredQuickInfoContent deferredContent, DeferredContentFrameworkElementFactory factory)
        {
            var documentationCommentContent = (DocumentationCommentDeferredContent)deferredContent;

            var documentationTextBlock = new TextBlock()
            {
                TextWrapping = TextWrapping.Wrap
            };

            var formatMap = _classificationFormatMapService.GetClassificationFormatMap("tooltip");

            documentationTextBlock.SetDefaultTextProperties(formatMap);

            // If we have already computed the symbol documentation by now, update

            UpdateDocumentationTextBlock(documentationCommentContent, documentationTextBlock);
            return(documentationTextBlock);
        }
 public QuickInfoPresenterSession(IThreadingContext threadingContext, IQuickInfoBroker quickInfoBroker, DeferredContentFrameworkElementFactory elementFactory, ITextView textView, ITextBuffer subjectBuffer)
     : this(threadingContext, quickInfoBroker, elementFactory, textView, subjectBuffer, null)
 {
 }
Example #6
0
 public QuickInfoPresenter(IQuickInfoBroker quickInfoBroker, DeferredContentFrameworkElementFactory elementFactory)
 {
     _quickInfoBroker = quickInfoBroker;
     _elementFactory  = elementFactory;
 }