BreakpointsVM(IDecompilerService decompilerService, IDebuggerSettings debuggerSettings, ITheDebugger theDebugger, IBreakpointService breakpointService, IBreakpointSettings breakpointSettings, Lazy<IModuleLoader> moduleLoader, IInMemoryModuleService inMemoryModuleService, IClassificationFormatMapService classificationFormatMapService, ITextElementProvider textElementProvider) { var classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap(AppearanceCategoryConstants.UIMisc); breakpointContext = new BreakpointContext(moduleLoader, classificationFormatMap, textElementProvider) { Decompiler = decompilerService.Decompiler, SyntaxHighlight = debuggerSettings.SyntaxHighlightBreakpoints, UseHexadecimal = debuggerSettings.UseHexadecimal, ShowTokens = breakpointSettings.ShowTokens, ShowModuleNames = breakpointSettings.ShowModuleNames, ShowParameterTypes = breakpointSettings.ShowParameterTypes, ShowParameterNames = breakpointSettings.ShowParameterNames, ShowOwnerTypes = breakpointSettings.ShowOwnerTypes, ShowReturnTypes = breakpointSettings.ShowReturnTypes, ShowNamespaces = breakpointSettings.ShowNamespaces, ShowTypeKeywords = breakpointSettings.ShowTypeKeywords, }; this.breakpointService = breakpointService; this.theDebugger = theDebugger; breakpointList = new ObservableCollection<BreakpointVM>(); breakpointSettings.PropertyChanged += BreakpointSettings_PropertyChanged; breakpointService.BreakpointsAdded += BreakpointService_BreakpointsAdded; breakpointService.BreakpointsRemoved += BreakpointService_BreakpointsRemoved; debuggerSettings.PropertyChanged += DebuggerSettings_PropertyChanged; theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged; classificationFormatMap.ClassificationFormatMappingChanged += ClassificationFormatMap_ClassificationFormatMappingChanged; decompilerService.DecompilerChanged += DecompilerService_DecompilerChanged; inMemoryModuleService.DynamicModulesLoaded += InMemoryModuleService_DynamicModulesLoaded; foreach (var bp in breakpointService.GetBreakpoints()) AddBreakpoint(bp); }
public AttachProcessVM(Dispatcher dispatcher, bool syntaxHighlight, IClassificationFormatMap classificationFormatMap, ITextElementProvider textElementProvider) { this.dispatcher = dispatcher; processContext = new ProcessContext(classificationFormatMap, textElementProvider) { SyntaxHighlight = syntaxHighlight, }; processList = new ObservableCollection<ProcessVM>(); Refresh(); }
AppSettingsService(IClassificationFormatMapService classificationFormatMapService, ITextElementProvider textElementProvider, IAppWindow appWindow, ITreeViewService treeViewService, ITreeViewNodeTextElementProvider treeViewNodeTextElementProvider, [ImportMany] IEnumerable<Lazy<IAppSettingsPageContainer, IAppSettingsPageContainerMetadata>> appSettingsPageContainers, [ImportMany] IEnumerable<Lazy<IAppSettingsPageProvider>> appSettingsPageProviders, [ImportMany] IEnumerable<Lazy<IAppSettingsModifiedListener, IAppSettingsModifiedListenerMetadata>> appSettingsModifiedListeners) { classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap(AppearanceCategoryConstants.UIMisc); this.textElementProvider = textElementProvider; this.appWindow = appWindow; this.treeViewService = treeViewService; this.treeViewNodeTextElementProvider = treeViewNodeTextElementProvider; this.appSettingsPageContainers = appSettingsPageContainers.OrderBy(a => a.Metadata.Order).ToArray(); this.appSettingsPageProviders = appSettingsPageProviders.ToArray(); this.appSettingsModifiedListeners = appSettingsModifiedListeners.OrderBy(a => a.Metadata.Order).ToArray(); }
public TabsVM(IDocumentTabService documentTabService, ISaveService saveService, ITabsVMSettings tabsVMSettings, IClassificationFormatMap classificationFormatMap, ITextElementProvider textElementProvider) { this.documentTabService = documentTabService; this.saveService = saveService; ClassificationFormatMap = classificationFormatMap; TextElementProvider = textElementProvider; Settings = tabsVMSettings; tabsList = new ObservableCollection<TabVM>(documentTabService.SortedTabs.Select(a => new TabVM(this, a))); SelectedItem = tabsList.Count == 0 ? null : tabsList[0]; InitializeSaveText(); }
ModulesVM(ITheDebugger theDebugger, IDebuggerSettings debuggerSettings, IClassificationFormatMapService classificationFormatMapService, ITextElementProvider textElementProvider) { var classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap(AppearanceCategoryConstants.UIMisc); this.theDebugger = theDebugger; moduleContext = new ModuleContext(theDebugger, classificationFormatMap, textElementProvider) { SyntaxHighlight = debuggerSettings.SyntaxHighlightModules, UseHexadecimal = debuggerSettings.UseHexadecimal, }; modulesList = new ObservableCollection<ModuleVM>(); theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged; debuggerSettings.PropertyChanged += DebuggerSettings_PropertyChanged; classificationFormatMap.ClassificationFormatMappingChanged += ClassificationFormatMap_ClassificationFormatMappingChanged; if (theDebugger.ProcessState != DebuggerProcessState.Terminated) InstallDebuggerHooks(theDebugger.Debugger); }
ThreadsVM(ITheDebugger theDebugger, IStackFrameService stackFrameService, IDebuggerSettings debuggerSettings, IClassificationFormatMapService classificationFormatMapService, ITextElementProvider textElementProvider) { this.theDebugger = theDebugger; this.stackFrameService = stackFrameService; var classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap(AppearanceCategoryConstants.UIMisc); threadContext = new ThreadContext(theDebugger, debuggerSettings, classificationFormatMap, textElementProvider) { SyntaxHighlight = debuggerSettings.SyntaxHighlightThreads, UseHexadecimal = debuggerSettings.UseHexadecimal, }; threadsList = new ObservableCollection<ThreadVM>(); stackFrameService.StackFramesUpdated += StackFrameService_StackFramesUpdated; stackFrameService.PropertyChanged += StackFrameService_PropertyChanged; theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged; debuggerSettings.PropertyChanged += DebuggerSettings_PropertyChanged; theDebugger.ProcessRunning += TheDebugger_ProcessRunning; classificationFormatMap.ClassificationFormatMappingChanged += ClassificationFormatMap_ClassificationFormatMappingChanged; }
public ThreadContext(ITheDebugger theDebugger, IDebuggerSettings debuggerSettings, IClassificationFormatMap classificationFormatMap, ITextElementProvider textElementProvider) { TheDebugger = theDebugger; DebuggerSettings = debuggerSettings; ClassificationFormatMap = classificationFormatMap; TextElementProvider = textElementProvider; }
public ProcessContext(IClassificationFormatMap classificationFormatMap, ITextElementProvider textElementProvider) { ClassificationFormatMap = classificationFormatMap; TextElementProvider = textElementProvider; }
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(); }
public CallStackFrameContext(IClassificationFormatMap classificationFormatMap, ITextElementProvider textElementProvider) { ClassificationFormatMap = classificationFormatMap; TextElementProvider = textElementProvider; }
CallStackVM(IDebuggerSettings debuggerSettings, ICallStackSettings callStackSettings, IStackFrameService stackFrameService, ITheDebugger theDebugger, IClassificationFormatMapService classificationFormatMapService, ITextElementProvider textElementProvider) { var classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap(AppearanceCategoryConstants.UIMisc); this.debuggerSettings = debuggerSettings; this.callStackSettings = callStackSettings; this.theDebugger = theDebugger; this.stackFrameService = stackFrameService; framesList = new ObservableCollection<ICallStackFrameVM>(); callStackFrameContext = new CallStackFrameContext(classificationFormatMap, textElementProvider) { TypePrinterFlags = TypePrinterFlags, SyntaxHighlight = debuggerSettings.SyntaxHighlightCallStack, }; stackFrameService.StackFramesUpdated += StackFrameService_StackFramesUpdated; stackFrameService.PropertyChanged += StackFrameService_PropertyChanged; callStackSettings.PropertyChanged += CallStackSettings_PropertyChanged; debuggerSettings.PropertyChanged += DebuggerSettings_PropertyChanged; theDebugger.ProcessRunning += TheDebugger_ProcessRunning; classificationFormatMap.ClassificationFormatMappingChanged += ClassificationFormatMap_ClassificationFormatMappingChanged; }
public ExceptionContext(IExceptionService exceptionService, IClassificationFormatMap classificationFormatMap, ITextElementProvider textElementProvider) { ExceptionService = exceptionService; ClassificationFormatMap = classificationFormatMap; TextElementProvider = textElementProvider; }
Loader(IClassificationFormatMapService classificationFormatMapService, ITextElementProvider textElementProvider) { classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap(AppearanceCategoryConstants.TextEditor); CilObjectConverter.textElementProvider = textElementProvider; }
public OpenDocumentListVM(bool syntaxHighlight, IClassificationFormatMap classificationFormatMap, ITextElementProvider textElementProvider, DocumentListService documentListService, Func<string, string> askUser) { SyntaxHighlight = syntaxHighlight; ClassificationFormatMap = classificationFormatMap; TextElementProvider = textElementProvider; this.documentListService = documentListService; this.askUser = askUser; documentListColl = new ObservableCollection<DocumentListVM>(); collectionView = (ListCollectionView)CollectionViewSource.GetDefaultView(documentListColl); collectionView.CustomSort = new DocumentListVM_Comparer(); selectedItems = Array.Empty<DocumentListVM>(); removedDocumentLists = new HashSet<DocumentListVM>(); addedDocumentLists = new List<DocumentListVM>(); cancellationTokenSource = new CancellationTokenSource(); cancellationToken = cancellationTokenSource.Token; searchingForDefaultLists = true; var hash = new HashSet<string>(StringComparer.OrdinalIgnoreCase); foreach (var documentList in documentListService.DocumentLists) { hash.Add(documentList.Name); documentListColl.Add(new DocumentListVM(this, documentList, true, true)); } Refilter(); Task.Factory.StartNew(() => new DefaultDocumentListFinder(cancellationToken).Find(), cancellationToken) .ContinueWith(t => { var ex = t.Exception; SearchingForDefaultLists = false; if (!t.IsCanceled && !t.IsFaulted) { foreach (var defaultList in t.Result) { if (hash.Contains(defaultList.Name)) continue; var documentList = new DocumentList(defaultList); documentListColl.Add(new DocumentListVM(this, documentList, false, false)); } Refilter(); } }, CancellationToken.None, TaskContinuationOptions.None, TaskScheduler.FromCurrentSynchronizationContext()); }
public ModuleContext(ITheDebugger theDebugger, IClassificationFormatMap classificationFormatMap, ITextElementProvider textElementProvider) { TheDebugger = theDebugger; ClassificationFormatMap = classificationFormatMap; TextElementProvider = textElementProvider; }
DocumentSearcherProvider(IDotNetImageService dotNetImageService, IDecompilerService decompilerService, ITextElementProvider textElementProvider, IClassificationFormatMapService classificationFormatMapService) { this.dotNetImageService = dotNetImageService; this.decompilerService = decompilerService; this.textElementProvider = textElementProvider; classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap(AppearanceCategoryConstants.UIMisc); }
public BreakpointContext(Lazy<IModuleLoader> moduleLoader, IClassificationFormatMap classificationFormatMap, ITextElementProvider textElementProvider) { this.moduleLoader = moduleLoader; ClassificationFormatMap = classificationFormatMap; TextElementProvider = textElementProvider; }
TreeViewNodeTextElementProvider(ITextElementProvider textElementProvider, IClassificationFormatMapService classificationFormatMapService) { this.textElementProvider = textElementProvider; classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap(AppearanceCategoryConstants.UIMisc); }
DebugService(IAppWindow appWindow, IDocumentTabService documentTabService, IMessageBoxService messageBoxService, IDebuggerSettings debuggerSettings, ITheDebugger theDebugger, IStackFrameService stackFrameService, Lazy<IModuleLoader> moduleLoader, Lazy<IInMemoryModuleService> inMemoryModuleService, IModuleIdProvider moduleIdProvider, IClassificationFormatMapService classificationFormatMapService, ITextElementProvider textElementProvider) { this.appWindow = appWindow; this.documentTabService = documentTabService; this.messageBoxService = messageBoxService; DebuggerSettings = debuggerSettings; this.theDebugger = theDebugger; StackFrameService = stackFrameService; this.moduleLoader = moduleLoader; this.inMemoryModuleService = inMemoryModuleService; this.moduleIdProvider = moduleIdProvider; this.classificationFormatMapService = classificationFormatMapService; this.textElementProvider = textElementProvider; stackFrameService.PropertyChanged += StackFrameService_PropertyChanged; theDebugger.ProcessRunning += TheDebugger_ProcessRunning; theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged; appWindow.MainWindowClosing += AppWindow_MainWindowClosing; debuggerSettings.PropertyChanged += DebuggerSettings_PropertyChanged; }
OpenListCommand(IAppWindow appWindow, IDocumentListLoader documentListLoader, DocumentListService documentListService, IMessageBoxService messageBoxService, IDsDocumentService documentService, IClassificationFormatMapService classificationFormatMapService, ITextElementProvider textElementProvider) { this.appWindow = appWindow; this.documentListLoader = documentListLoader; this.documentListService = documentListService; this.messageBoxService = messageBoxService; this.documentService = documentService; classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap(AppearanceCategoryConstants.UIMisc); this.textElementProvider = textElementProvider; }
OpenFromGAC(IAppWindow appWindow, IDocumentTreeView documentTreeView, IClassificationFormatMapService classificationFormatMapService, ITextElementProvider textElementProvider) { this.appWindow = appWindow; this.documentTreeView = documentTreeView; classificationFormatMap = classificationFormatMapService.GetClassificationFormatMap(AppearanceCategoryConstants.UIMisc); this.textElementProvider = textElementProvider; }