本文整理汇总了C#中IClassificationTypeRegistryService.GetClassificationType方法的典型用法代码示例。如果您正苦于以下问题:C# IClassificationTypeRegistryService.GetClassificationType方法的具体用法?C# IClassificationTypeRegistryService.GetClassificationType怎么用?C# IClassificationTypeRegistryService.GetClassificationType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IClassificationTypeRegistryService
的用法示例。
在下文中一共展示了IClassificationTypeRegistryService.GetClassificationType方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MarkdownClassifier
public MarkdownClassifier(IClassificationTypeRegistryService registry)
{
_bold = registry.GetClassificationType(MarkdownClassificationTypes.MarkdownBold);
_italic = registry.GetClassificationType(MarkdownClassificationTypes.MarkdownItalic);
_header = registry.GetClassificationType(MarkdownClassificationTypes.MarkdownHeader);
_code = registry.GetClassificationType(MarkdownClassificationTypes.MarkdownCode);
}
示例2: SqlClassifier
internal SqlClassifier(ITagAggregator<NaturalTextTag> tagger, IClassificationTypeRegistryService classificationRegistry)
{
this.tagger = tagger;
keywordType = classificationRegistry.GetClassificationType("sql-keyword");
functionType = classificationRegistry.GetClassificationType("sql-function");
variableType = classificationRegistry.GetClassificationType("sql-variable");
}
示例3: UsageClassifier
public UsageClassifier(IClassificationTypeRegistryService classificationRegistry, ITextBuffer textBuffer)
{
_highlightOne = classificationRegistry.GetClassificationType(ClassificationTypes.HighlightOneName);
_highlightTwo = classificationRegistry.GetClassificationType(ClassificationTypes.HighlightTwoName);
_textBuffer = textBuffer;
_textBuffer.Changed += (_, args) => UpdateUsageHighlighting(Enumerable.Empty<GotoInfo>());
}
示例4: DockerfileClassifier
public DockerfileClassifier(IClassificationTypeRegistryService registry)
{
_keyword = registry.GetClassificationType(PredefinedClassificationTypeNames.Keyword);
_comment = registry.GetClassificationType(PredefinedClassificationTypeNames.Comment);
_string = registry.GetClassificationType(PredefinedClassificationTypeNames.String);
_symbol = registry.GetClassificationType(DockerfileClassificationTypes.Keyword);
}
示例5: DothtmlClassifier
/// <summary>
/// Initializes a new instance of the <see cref="DothtmlClassifier"/> class.
/// </summary>
public DothtmlClassifier(IClassificationTypeRegistryService registry, ITextBuffer buffer)
{
tokenizer = new DothtmlTokenizer();
this.buffer = buffer;
bindingBrace = registry.GetClassificationType(DothtmlClassificationTypes.BindingBrace);
bindingContent = registry.GetClassificationType(DothtmlClassificationTypes.BindingContent);
}
示例6: WacomTranslationDatabaseHighlighter
internal WacomTranslationDatabaseHighlighter(IClassificationTypeRegistryService registry)
{
_keyType = registry.GetClassificationType("wacom.tdb.key");
_valType = registry.GetClassificationType("wacom.tdb.value");
_sepType = registry.GetClassificationType("wacom.tdb.separator");
_errType = registry.GetClassificationType("wacom.tdb.error");
}
开发者ID:ben,项目名称:WacomTranslationDatabaseHighlighter,代码行数:7,代码来源:WacomTranslationDatabaseHighlighter.cs
示例7: VendorClassifier
internal VendorClassifier(IClassificationTypeRegistryService registry, ITextBuffer buffer)
{
_registry = registry;
_buffer = buffer;
_decClassification = _registry.GetClassificationType(ClassificationTypes._declaration);
_valClassification = _registry.GetClassificationType(ClassificationTypes._value);
}
示例8: RobotsTxtSyntacticParser
public RobotsTxtSyntacticParser(IClassificationTypeRegistryService registry)
{
_commentType = registry.GetClassificationType(PredefinedClassificationTypeNames.Comment);
_delimiterType = registry.GetClassificationType("RobotsTxt/Delimiter");
_recordNameType = registry.GetClassificationType("RobotsTxt/RecordName");
_recordValueType = registry.GetClassificationType("RobotsTxt/RecordValue");
}
示例9: BuildOutputClassifier
/// <summary>
/// Initializes a new instance of the <see cref="BuildOutputClassifier"/> class.
/// </summary>
/// <param name="registry">Classification registry.</param>
internal BuildOutputClassifier(IClassificationTypeRegistryService registry) {
classificationTypes = new Dictionary<String, IClassificationType> {
{ ClassificationType.BuildResultSucceeded, registry.GetClassificationType(ClassificationType.BuildResultSucceeded) },
{ ClassificationType.BuildResultFailed, registry.GetClassificationType(ClassificationType.BuildResultFailed) },
{ ClassificationType.BuildMessageError, registry.GetClassificationType(ClassificationType.BuildMessageError) },
{ ClassificationType.BuildMessageWarning, registry.GetClassificationType(ClassificationType.BuildMessageWarning) }
};
}
示例10: StorEvilClassifier
internal StorEvilClassifier(IClassificationTypeRegistryService registry)
{
_pending = registry.GetClassificationType("StorEvil.VS2010.Pending");
_comment = registry.GetClassificationType("StorEvil.VS2010.Comment");
_interpreted = registry.GetClassificationType("StorEvil.VS2010.Interpreted");
_scenarioStart = registry.GetClassificationType("StorEvil.VS2010.ScenarioStart");
_table = registry.GetClassificationType("StorEvil.VS2010.Table");
}
示例11: WebVttClassifier
public WebVttClassifier(IClassificationTypeRegistryService registry)
{
_markup = registry.GetClassificationType(WebVttClassificationTypes.Markup);
_name = registry.GetClassificationType(WebVttClassificationTypes.Name);
_statement = registry.GetClassificationType(WebVttClassificationTypes.Statement);
_time = registry.GetClassificationType(WebVttClassificationTypes.Time);
_comment = registry.GetClassificationType(PredefinedClassificationTypeNames.Comment);
}
示例12: VccClassifier
internal VccClassifier(IClassificationTypeRegistryService registry)
{
this.keywordType = registry.GetClassificationType(VccClassificationTypeDefinitions.KeywordType);
this.specType= registry.GetClassificationType(VccClassificationTypeDefinitions.SpecType);
this.dimmedKeywordType = registry.GetClassificationType(VccClassificationTypeDefinitions.DimmedKeywordType);
this.dimmedSpecType = registry.GetClassificationType(VccClassificationTypeDefinitions.DimmedSpecType);
VSPackagePackage.Instance.OptionPage.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(OptionPage_PropertyChanged);
}
示例13: HSPClassifier
internal HSPClassifier(IClassificationTypeRegistryService registry)
{
_validType = registry.GetClassificationType("HSPClassifierValidFormat");
_normalType = registry.GetClassificationType("HSPClassifierNormalFormat");
_commentoutType = registry.GetClassificationType("HSPClassifierCommentOutFormat");
_keywordType = registry.GetClassificationType("HSPClassifierKeywordFormat");
}
示例14: EditorClassifierMaxMinLenRow
internal EditorClassifierMaxMinLenRow(ITextBuffer bufferToClassify, IClassificationTypeRegistryService registry)
{
buffer = bufferToClassify;
_classificationTypeVeryLong = registry.GetClassificationType("VeryLongStr");
_classificationTypeLong = registry.GetClassificationType("LongStr"); ;
_classificationTypeNormal = registry.GetClassificationType("NormStr"); ;
_classificationTypeSmall = registry.GetClassificationType("SmallStr"); ;
_classificationTypeVerySmall = registry.GetClassificationType("VerySmallStr"); ;
}
示例15: RobotsTxtClassifier
/// <summary>
/// Initializes a new instance of the <see cref="RobotsTxtClassifier"/> class.
/// </summary>
/// <param name="registry">Classification registry.</param>
public RobotsTxtClassifier(ITextBuffer buffer, ISyntacticParser syntacticParser, IClassificationTypeRegistryService registry)
{
buffer.Properties.AddProperty(typeof(ISyntacticParser), syntacticParser);
_commentType = registry.GetClassificationType(PredefinedClassificationTypeNames.Comment);
_delimiterType = registry.GetClassificationType("RobotsTxt/Delimiter");
_propertyNameType = registry.GetClassificationType("RobotsTxt/PropertyName");
_propertyValueType = registry.GetClassificationType("RobotsTxt/PropertyValue");
}