Exemplo n.º 1
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();
 }
Exemplo n.º 2
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();
        }
Exemplo n.º 3
0
 ToggleEnableExceptionsCtxMenuCommand(Lazy <IExceptionsContent> exceptionsContent, IExceptionListSettings exceptionListSettings)
     : base(exceptionsContent)
 {
     this.exceptionListSettings = exceptionListSettings;
 }
Exemplo 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();
		}
Exemplo n.º 5
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();
		}