public CompletionTextElementProvider(ITextClassifierAggregatorService textClassifierAggregatorService, IClassificationFormatMap classificationFormatMap, IContentTypeRegistryService contentTypeRegistryService) { this.textClassifierAggregatorService = textClassifierAggregatorService ?? throw new ArgumentNullException(nameof(textClassifierAggregatorService)); this.classificationFormatMap = classificationFormatMap ?? throw new ArgumentNullException(nameof(classificationFormatMap)); this.contentTypeRegistryService = contentTypeRegistryService ?? throw new ArgumentNullException(nameof(contentTypeRegistryService)); toClassifier = new Dictionary <IContentType, ITextClassifier>(); }
TextBlockContentInfoFactory(ITextElementFactory textElementFactory, IContentTypeRegistryService contentTypeRegistryService, ITextClassifierAggregatorService textClassifierAggregatorService) { this.textElementFactory = textElementFactory; this.contentTypeRegistryService = contentTypeRegistryService; this.textClassifierAggregatorService = textClassifierAggregatorService; toAggregator = new Dictionary <IContentType, ITextClassifierAggregator>(); }
TextElementProvider(IContentTypeRegistryService contentTypeRegistryService, ITextClassifierAggregatorService textClassifierAggregatorService) { this.contentTypeRegistryService = contentTypeRegistryService; this.textClassifierAggregatorService = textClassifierAggregatorService; tagsList = new List <TextClassificationTag>(); toAggregator = new Dictionary <IContentType, ITextClassifierAggregator>(); }
TreeViewNodeTextElementProvider(IContentTypeRegistryService contentTypeRegistryService, ITextClassifierAggregatorService textClassifierAggregatorService, IClassificationFormatMapService classificationFormatMapService) { this.contentTypeRegistryService = contentTypeRegistryService; this.textClassifierAggregatorService = textClassifierAggregatorService; this.classificationFormatMapService = classificationFormatMapService; this.classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap(TreeViewTextEditorFormatDefinition.TreeViewAppearanceCategory); this.tagsList = new List <TextClassificationTag>(); this.toAggregator = new Dictionary <IContentType, ITextClassifierAggregator>(); }
public TaggedTextElementProvider(IContentType contentType, ITextClassifierAggregatorService textClassifierAggregatorService, IClassificationFormatMap classificationFormatMap) { if (contentType == null) throw new ArgumentNullException(nameof(contentType)); if (textClassifierAggregatorService == null) throw new ArgumentNullException(nameof(textClassifierAggregatorService)); if (classificationFormatMap == null) throw new ArgumentNullException(nameof(classificationFormatMap)); classifierAggregator = textClassifierAggregatorService.Create(contentType); this.classificationFormatMap = classificationFormatMap; }
public CompletionTextElementProvider(ITextClassifierAggregatorService textClassifierAggregatorService, IClassificationFormatMap classificationFormatMap, IContentTypeRegistryService contentTypeRegistryService) { if (textClassifierAggregatorService == null) throw new ArgumentNullException(nameof(textClassifierAggregatorService)); if (classificationFormatMap == null) throw new ArgumentNullException(nameof(classificationFormatMap)); if (contentTypeRegistryService == null) throw new ArgumentNullException(nameof(contentTypeRegistryService)); this.textClassifierAggregatorService = textClassifierAggregatorService; this.classificationFormatMap = classificationFormatMap; this.contentTypeRegistryService = contentTypeRegistryService; toClassifier = new Dictionary<IContentType, ITextClassifier>(); }
public TaggedTextElementProvider(IContentType contentType, ITextClassifierAggregatorService textClassifierAggregatorService, IClassificationFormatMap classificationFormatMap) { if (contentType is null) { throw new ArgumentNullException(nameof(contentType)); } if (textClassifierAggregatorService is null) { throw new ArgumentNullException(nameof(textClassifierAggregatorService)); } classifierAggregator = textClassifierAggregatorService.Create(contentType); this.classificationFormatMap = classificationFormatMap ?? throw new ArgumentNullException(nameof(classificationFormatMap)); }
public CompletionClassifierAggregator(ITextClassifierAggregatorService textClassifierAggregatorService, ICompletionClassifier[] completionClassifiers) { if (textClassifierAggregatorService == null) { throw new ArgumentNullException(nameof(textClassifierAggregatorService)); } if (completionClassifiers == null) { throw new ArgumentNullException(nameof(completionClassifiers)); } this.textClassifierAggregator = textClassifierAggregatorService.Create(new ITextClassifier[] { new TextClassifier(this) }); this.completionClassifiers = completionClassifiers; }
public TaggedTextElementProvider(ITextClassifierAggregatorService textClassifierAggregatorService, IClassificationFormatMap classificationFormatMap, ITextClassifier[] classifiers) { if (textClassifierAggregatorService == null) { throw new ArgumentNullException(nameof(textClassifierAggregatorService)); } if (classificationFormatMap == null) { throw new ArgumentNullException(nameof(classificationFormatMap)); } if (classifiers == null) { throw new ArgumentNullException(nameof(classifiers)); } this.classifier = textClassifierAggregatorService.Create(classifiers); this.classificationFormatMap = classificationFormatMap; }
TaggedTextElementProviderService(ITextClassifierAggregatorService textClassifierAggregatorService, IClassificationFormatMapService classificationFormatMapService) { this.textClassifierAggregatorService = textClassifierAggregatorService; this.classificationFormatMapService = classificationFormatMapService; }
TextElementProvider(IContentTypeRegistryService contentTypeRegistryService, ITextClassifierAggregatorService textClassifierAggregatorService) { this.contentTypeRegistryService = contentTypeRegistryService; this.textClassifierAggregatorService = textClassifierAggregatorService; tagsList = new List<TextClassificationTag>(); toAggregator = new Dictionary<IContentType, ITextClassifierAggregator>(); }