Example #1
0
 protected ViewEditorFormatMap(EditorFormatMapService editorFormatMapService, string appearanceCategoryName)
 {
     categoryMap = null !;
     this.editorFormatMapService = editorFormatMapService ?? throw new ArgumentNullException(nameof(editorFormatMapService));
     this.appearanceCategoryName = appearanceCategoryName ?? throw new ArgumentNullException(nameof(appearanceCategoryName));
     viewProps = new HashSet <string>(StringComparer.Ordinal);
 }
Example #2
0
 public TextViewEditorFormatMap(ITextView textView, EditorFormatMapService editorFormatMapService)
     : base(editorFormatMapService, DefaultWpfViewOptions.AppearanceCategoryName)
 {
     this.textView = textView ?? throw new ArgumentNullException(nameof(textView));
     textView.Options.OptionChanged += Options_OptionChanged;
     Initialize();
 }
Example #3
0
 public HexViewEditorFormatMap(HexView hexView, TC.EditorFormatMapService editorFormatMapService)
     : base(editorFormatMapService, DefaultWpfHexViewOptions.AppearanceCategoryName)
 {
     this.hexView = hexView ?? throw new ArgumentNullException(nameof(hexView));
     hexView.Options.OptionChanged += Options_OptionChanged;
     Initialize();
 }
Example #4
0
		protected ViewEditorFormatMap(EditorFormatMapService editorFormatMapService, string appearanceCategoryName) {
			if (editorFormatMapService == null)
				throw new ArgumentNullException(nameof(editorFormatMapService));
			if (appearanceCategoryName == null)
				throw new ArgumentNullException(nameof(appearanceCategoryName));
			this.editorFormatMapService = editorFormatMapService;
			this.appearanceCategoryName = appearanceCategoryName;
			viewProps = new HashSet<string>(StringComparer.Ordinal);
		}
Example #5
0
		public TextViewEditorFormatMap(ITextView textView, EditorFormatMapService editorFormatMapService)
			: base(editorFormatMapService, DefaultWpfViewOptions.AppearanceCategoryName) {
			if (textView == null)
				throw new ArgumentNullException(nameof(textView));
			this.textView = textView;
			textView.Options.OptionChanged += Options_OptionChanged;
			Initialize();
		}