public BookmarkHeaderTagger(ITextBuffer buffer, ITagAggregator <IClassificationTag> agg, IContentType contentType)
 {
     configs          = ConfigService.Current.CommentConfiguration;
     buffer.Changed  += (sender, args) => HandleBufferChanged(args);
     tagAggregator    = agg;
     this.contentType = contentType;
     commentDelimiter = contentType.GetCommentDelimiter();
 }
        public CommentTagger(IClassificationTypeRegistryService reg,
                             ITagAggregator <IClassificationTag> agg,
                             IContentType contentType)
        {
            classReg         = reg;
            tagAggregator    = agg;
            this.contentType = contentType;

            config = ConfigService.Current.CommentConfiguration;

            commentDelimiter = contentType.GetCommentDelimiter();
        }
        public ClassificationsPageViewModel(ICommentConfiguration config, IDialogService dialogService)
        {
            Config        = config;
            DialogService = dialogService;

            foreach (var cls in Config.Classifications)
            {
                Classifications.Add(new ClassificationViewModel(cls, this));
            }

            AddCommand = new RelayCommand(ShowNewClassificationDialog);
        }
Exemple #4
0
        public StylesPageViewModel(ICommentConfiguration config, IDialogService dialogService)
        {
            Config        = config;
            DialogService = dialogService;

            foreach (var style in Config.Styles)
            {
                Styles.Add(new StyleViewModel(style, this));
            }

            AddCommand = new RelayCommand(AddStyle);

            using (var fonts = new InstalledFontCollection())
            {
                foreach (var font in fonts.Families.OrderBy(f => f.Name))
                {
                    Fonts.Add(font.Name);
                }
            }
        }
 public HtmlCommentExtractor(ICommentConfiguration commentConfig)
 {
 }
Exemple #6
0
 public CppCommentExtractor(ICommentConfiguration config)
 {
     this.config = config;
 }
Exemple #7
0
#pragma warning restore 0649

        public WpfTextViewCreationListener()
        {
            configs = ConfigService.Current.CommentConfiguration;
            configs.ChangesSaved += CommentConfiguration_ChangesSaved;
        }