/// <summary> /// Initializes a new instance of the <see cref="BaseViewModel" /> class. /// </summary> /// <param name="settingsService">The settings service.</param> /// <param name="themeFactory">The theme factory.</param> /// <param name="languageFactory">The language factory.</param> public VisualViewModel( ISettingsService settingsService, IThemeFactory themeFactory, ILanguageFactory languageFactory) : base(settingsService) { this.themeFactory = themeFactory; this.languageFactory = languageFactory; this.Init(); }
public LanguageService( ILanguageRepository repo, ILanguageFactory factory ) { repo.CheckArgumentIsNull(); _repo = repo; factory.CheckArgumentIsNull(); _factory = factory; }
#pragma warning restore 67 internal KeywordTagger(ITextBuffer buffer, KeywordTaggerProvider provider) { theBuffer = buffer; this.aggregator = provider.Aggregator.CreateTagAggregator <IClassificationTag>(buffer); this.langFactory = provider.LanguageFactory; keywordClassification = provider.GetTag(Constants.KEYWORD_CLASSIF_NAME); linqClassification = provider.GetTag(Constants.LINQ_CLASSIF_NAME); visClassification = provider.GetTag(Constants.VISIBILITY_CLASSIF_NAME); stringEscapeClassification = provider.GetTag(Constants.STRING_ESCAPE_CLASSIF_NAME); formatSpecClassification = provider.GetTag(Constants.FORMAT_SPECIFIER_NAME); this.settings = provider.Settings; this.settings.SettingsChanged += this.OnSettingsChanged; }
#pragma warning restore 67 internal KeywordTagger(ITextBuffer buffer, KeywordTaggerProvider provider) { theBuffer = buffer; this.aggregator = provider.Aggregator.CreateTagAggregator <IClassificationTag>(buffer); this.langFactory = provider.LanguageFactory; var registry = provider.ClassificationRegistry; keywordClassification = new KeywordTag(registry.GetClassificationType(Constants.KEYWORD_CLASSIF_NAME)); linqClassification = new KeywordTag(registry.GetClassificationType(Constants.LINQ_CLASSIF_NAME)); visClassification = new KeywordTag(registry.GetClassificationType(Constants.VISIBILITY_CLASSIF_NAME)); stringEscapeClassification = new KeywordTag(registry.GetClassificationType(Constants.STRING_ESCAPE_CLASSIF_NAME)); VsfSettings.SettingsUpdated += this.OnSettingsUpdated; }
public static ILanguage TryCreateLanguage(this ILanguageFactory factory, IContentType contentType) { Func <String, bool> matcher = (String lang) => contentType.IsOfType(lang); return(factory.TryCreateLanguage(matcher)); }
public static ILanguage TryCreateLanguage(this ILanguageFactory factory, ITextSnapshot snapshot) { return(factory.TryCreateLanguage(snapshot.ContentType)); }
public static ILanguage TryCreateLanguage(this ILanguageFactory factory, ITextBuffer buffer) { return(factory.TryCreateLanguage(buffer.ContentType)); }
public ModeLineProvider(IWpfTextView view, ModelineFactory factory) { this.theView = view; this.langFactory = factory.LanguageFactory; }
public GreetingService(IGreetingFactory greetingFactory, ILanguageFactory languageFactory) { // store the factory until we need it this.greetingFactory = greetingFactory; }
public ModeLineProvider(IWpfTextView view, ILanguageFactory langFactory) { this.theView = view; this.langFactory = langFactory; }
public MultiLang(IResourceGroupFactory groupFactory, ILanguageFactory languageFactory) => (_groupFactory, _languageFactory) = (groupFactory, languageFactory);