Esempio n. 1
0
 public ExceptionsVM(ISelectedItemsProvider <ExceptionVM> selectedItemsProvider, IGetNewExceptionName getNewExceptionName)
 {
     this.selectedItemsProvider = selectedItemsProvider;
     this.getNewExceptionName   = getNewExceptionName;
     this.exceptionsList        = new ObservableCollection <ExceptionVM>();
     this.collectionView        = CollectionViewSource.GetDefaultView(exceptionsList);
     DebuggerSettings.Instance.PropertyChanged += DebuggerSettings_PropertyChanged;
     ExceptionManager.Instance.Changed         += ExceptionManager_Changed;
     InitializeDefaultExceptions();
 }
Esempio n. 2
0
 ExceptionsVM(IDebuggerSettings debuggerSettings, IExceptionManager exceptionManager, IExceptionListSettings exceptionListSettings, IGetNewExceptionName getNewExceptionName)
 {
     this.debuggerSettings      = debuggerSettings;
     this.exceptionManager      = exceptionManager;
     this.exceptionListSettings = exceptionListSettings;
     this.getNewExceptionName   = getNewExceptionName;
     this.exceptionContext      = new ExceptionContext(exceptionManager)
     {
         SyntaxHighlight = debuggerSettings.SyntaxHighlightExceptions,
     };
     this.exceptionsList = new ObservableCollection <ExceptionVM>();
     this.CollectionView = CollectionViewSource.GetDefaultView(exceptionsList);
     debuggerSettings.PropertyChanged += DebuggerSettings_PropertyChanged;
     exceptionManager.Changed         += ExceptionManager_Changed;
     InitializeDefaultExceptions();
 }
Esempio n. 3
0
        ExceptionsVM(IDebuggerSettings debuggerSettings, IExceptionService exceptionService, IExceptionListSettings exceptionListSettings, IGetNewExceptionName getNewExceptionName, IClassificationFormatMapService classificationFormatMapService, ITextElementProvider textElementProvider)
        {
            var classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap(AppearanceCategoryConstants.UIMisc);

            this.debuggerSettings      = debuggerSettings;
            this.exceptionService      = exceptionService;
            this.exceptionListSettings = exceptionListSettings;
            this.getNewExceptionName   = getNewExceptionName;
            exceptionContext           = new ExceptionContext(exceptionService, classificationFormatMap, textElementProvider)
            {
                SyntaxHighlight = debuggerSettings.SyntaxHighlightExceptions,
            };
            exceptionsList = new ObservableCollection <ExceptionVM>();
            CollectionView = CollectionViewSource.GetDefaultView(exceptionsList);
            debuggerSettings.PropertyChanged += DebuggerSettings_PropertyChanged;
            exceptionService.Changed         += ExceptionService_Changed;
            classificationFormatMap.ClassificationFormatMappingChanged += ClassificationFormatMap_ClassificationFormatMappingChanged;
            InitializeDefaultExceptions();
        }
Esempio n. 4
0
		ExceptionsVM(IDebuggerSettings debuggerSettings, IExceptionService exceptionService, IExceptionListSettings exceptionListSettings, IGetNewExceptionName getNewExceptionName, IClassificationFormatMapService classificationFormatMapService, ITextElementProvider textElementProvider) {
			var classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap(AppearanceCategoryConstants.UIMisc);
			this.debuggerSettings = debuggerSettings;
			this.exceptionService = exceptionService;
			this.exceptionListSettings = exceptionListSettings;
			this.getNewExceptionName = getNewExceptionName;
			exceptionContext = new ExceptionContext(exceptionService, classificationFormatMap, textElementProvider) {
				SyntaxHighlight = debuggerSettings.SyntaxHighlightExceptions,
			};
			exceptionsList = new ObservableCollection<ExceptionVM>();
			CollectionView = CollectionViewSource.GetDefaultView(exceptionsList);
			debuggerSettings.PropertyChanged += DebuggerSettings_PropertyChanged;
			exceptionService.Changed += ExceptionService_Changed;
			classificationFormatMap.ClassificationFormatMappingChanged += ClassificationFormatMap_ClassificationFormatMappingChanged;
			InitializeDefaultExceptions();
		}
Esempio n. 5
0
		public ExceptionsVM(ISelectedItemsProvider<ExceptionVM> selectedItemsProvider, IGetNewExceptionName getNewExceptionName) {
			this.selectedItemsProvider = selectedItemsProvider;
			this.getNewExceptionName = getNewExceptionName;
			this.exceptionsList = new ObservableCollection<ExceptionVM>();
			this.collectionView = CollectionViewSource.GetDefaultView(exceptionsList);
			DebuggerSettings.Instance.PropertyChanged += DebuggerSettings_PropertyChanged;
			ExceptionManager.Instance.Changed += ExceptionManager_Changed;
			InitializeDefaultExceptions();
		}
Esempio n. 6
0
		ExceptionsVM(IDebuggerSettings debuggerSettings, IExceptionManager exceptionManager, IExceptionListSettings exceptionListSettings, IGetNewExceptionName getNewExceptionName) {
			this.debuggerSettings = debuggerSettings;
			this.exceptionManager = exceptionManager;
			this.exceptionListSettings = exceptionListSettings;
			this.getNewExceptionName = getNewExceptionName;
			this.exceptionContext = new ExceptionContext(exceptionManager) {
				SyntaxHighlight = debuggerSettings.SyntaxHighlightExceptions,
			};
			this.exceptionsList = new ObservableCollection<ExceptionVM>();
			this.collectionView = CollectionViewSource.GetDefaultView(exceptionsList);
			debuggerSettings.PropertyChanged += DebuggerSettings_PropertyChanged;
			exceptionManager.Changed += ExceptionManager_Changed;
			InitializeDefaultExceptions();
		}