ToolWindowLoader(IWpfCommandService wpfCommandService, IDsToolWindowService toolWindowService) { var cmds = wpfCommandService.GetCommands(ControlConstants.GUID_MAINWINDOW); cmds.Add(OpenToolWindow, new RelayCommand(a => toolWindowService.Show(ToolWindowContentImpl.THE_GUID))); cmds.Add(OpenToolWindow, ModifierKeys.Control | ModifierKeys.Alt, Key.Z); }
AutoShowDebuggerWindowsLoader(IDebuggerSettings debuggerSettings, ITheDebugger theDebugger, IDsToolWindowService toolWindowService) { this.debuggerSettings = debuggerSettings; this.theDebugger = theDebugger; this.toolWindowService = toolWindowService; theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged; }
DocumentViewerBookmarksOperationsProviderImpl(IDsToolWindowService toolWindowService, TextViewBookmarkService textViewBookmarkService, Lazy <BookmarksService> bookmarksService, Lazy <BookmarkNavigator> bookmarkNavigator) { this.toolWindowService = toolWindowService; this.textViewBookmarkService = textViewBookmarkService; this.bookmarksService = bookmarksService; this.bookmarkNavigator = bookmarkNavigator; }
SearchCommandLoader(IDsToolWindowService toolWindowService, Lazy<ISearchService> searchService, IWpfCommandService wpfCommandService) { this.toolWindowService = toolWindowService; this.searchService = searchService; var cmds = wpfCommandService.GetCommands(ControlConstants.GUID_MAINWINDOW); cmds.Add(SearchRoutedCommand, Search, CanSearch); }
ShowDocumentTreeViewCommandLoader(IWpfCommandService wpfCommandService, IDsToolWindowService toolWindowService) { wpfCommandService.GetCommands(ControlConstants.GUID_MAINWINDOW).Add( ShowDocumentTreeViewRoutedCommand, (s, e) => toolWindowService.Show(DocumentTreeViewWindowContent.THE_GUID), (s, e) => e.CanExecute = true, ModifierKeys.Control | ModifierKeys.Alt, Key.L); }
CallStackCommandLoader(IWpfCommandService wpfCommandService, IDsToolWindowService toolWindowService) { var cmds = wpfCommandService.GetCommands(ControlConstants.GUID_MAINWINDOW); cmds.Add(DebugRoutedCommands.ShowLocals, new RelayCommand(a => toolWindowService.Show(LocalsToolWindowContent.THE_GUID))); cmds.Add(DebugRoutedCommands.ShowLocals, ModifierKeys.Alt, Key.D4); }
static void Analyze(IDsToolWindowService toolWindowService, Lazy <IAnalyzerService> analyzerService, IDecompiler decompiler, IEnumerable <IMemberRef> mrs) { foreach (var mr in mrs) { Analyze(toolWindowService, analyzerService, decompiler, mr); } }
ShowCSharpInteractiveCommandLoader(IWpfCommandService wpfCommandService, IDsToolWindowService toolWindowService) { var cmds = wpfCommandService.GetCommands(ControlConstants.GUID_MAINWINDOW); cmds.Add(ShowCSharpInteractiveRoutedCommand, (s, e) => toolWindowService.Show(CSharpToolWindowContent.THE_GUID), (s, e) => e.CanExecute = true); cmds.Add(ShowCSharpInteractiveRoutedCommand, ModifierKeys.Control | ModifierKeys.Alt, Key.N); }
public DocumentViewerBookmarksOperationsImpl(ITextView textView, IDsToolWindowService toolWindowService, TextViewBookmarkService textViewBookmarkService, Lazy <BookmarksService> bookmarksService, Lazy <BookmarkNavigator> bookmarkNavigator) { this.textView = textView ?? throw new ArgumentNullException(nameof(textView)); this.toolWindowService = toolWindowService ?? throw new ArgumentNullException(nameof(toolWindowService)); this.textViewBookmarkService = textViewBookmarkService ?? throw new ArgumentNullException(nameof(textViewBookmarkService)); this.bookmarksService = bookmarksService ?? throw new ArgumentNullException(nameof(bookmarksService)); this.bookmarkNavigator = bookmarkNavigator ?? throw new ArgumentNullException(nameof(bookmarkNavigator)); }
SearchCommandLoader(IDsToolWindowService toolWindowService, Lazy <ISearchService> searchService, IWpfCommandService wpfCommandService) { this.toolWindowService = toolWindowService; this.searchService = searchService; var cmds = wpfCommandService.GetCommands(ControlConstants.GUID_MAINWINDOW); cmds.Add(SearchRoutedCommand, Search, CanSearch); }
ShowOutputWindowCommandLoader(IWpfCommandService wpfCommandService, IDsToolWindowService toolWindowService) { var cmds = wpfCommandService.GetCommands(ControlConstants.GUID_MAINWINDOW); cmds.Add(ShowOutputWindowRoutedCommand, (s, e) => toolWindowService.Show(OutputToolWindowContent.THE_GUID), (s, e) => e.CanExecute = true); cmds.Add(ShowOutputWindowRoutedCommand, ModifierKeys.Alt, Key.D2); }
ToolWindowsOperationsImpl(UIDispatcher uiDispatcher, IDsToolWindowService toolWindowService, Lazy <IOutputService> outputService, Lazy <DbgManager> dbgManager, Lazy <Memory.MemoryToolWindowContentProvider> memoryToolWindowContentProvider, Lazy <Watch.WatchToolWindowContentProvider> watchToolWindowContentProvider) { this.uiDispatcher = uiDispatcher; this.toolWindowService = toolWindowService; this.outputService = outputService; this.dbgManager = dbgManager; this.memoryToolWindowContentProvider = memoryToolWindowContentProvider; this.watchToolWindowContentProvider = watchToolWindowContentProvider; }
StringsAnalyzerCommandLoader(IWpfCommandService wpfCommandService, IDsToolWindowService toolWindowService) { //var cmds = wpfCommandService.GetCommands(ControlConstants.GUID_MAINWINDOW); //cmds.Add(StringsAnalyzerRoutedCommand.DeleteAllBreakpoints, (s, e) => breakpointService.Value.ClearAskUser(), (s, e) => e.CanExecute = breakpointService.Value.CanClear, ModifierKeys.Control | ModifierKeys.Shift, Key.F9); //cmds.Add(StringsAnalyzerRoutedCommand.ToggleBreakpoint, (s, e) => breakpointService.Value.ToggleBreakpoint(), (s, e) => e.CanExecute = breakpointService.Value.CanToggleBreakpoint, ModifierKeys.None, Key.F9); //cmds.Add(StringsAnalyzerRoutedCommand.DisableBreakpoint, (s, e) => breakpointService.Value.DisableBreakpoint(), (s, e) => e.CanExecute = breakpointService.Value.CanDisableBreakpoint, ModifierKeys.Control, Key.F9); //cmds.Add(StringsAnalyzerRoutedCommand.DisableAllBreakpoints, (s, e) => breakpointService.Value.DisableAllBreakpoints(), (s, e) => e.CanExecute = breakpointService.Value.CanDisableAllBreakpoints); //cmds.Add(StringsAnalyzerRoutedCommand.EnableAllBreakpoints, (s, e) => breakpointService.Value.EnableAllBreakpoints(), (s, e) => e.CanExecute = breakpointService.Value.CanEnableAllBreakpoints); //cmds.Add(StringsAnalyzerRoutedCommand.ShowBreakpoints, new RelayCommand(a => toolWindowService.Show(BreakpointsToolWindowContent.THE_GUID))); //cmds.Add(StringsAnalyzerRoutedCommand.ShowBreakpoints, ModifierKeys.Control | ModifierKeys.Alt, Key.B); //cmds.Add(StringsAnalyzerRoutedCommand.ShowBreakpoints, ModifierKeys.Alt, Key.F9); }
MemoryContentCommandLoader(IWpfCommandService wpfCommandService, MemoryToolWindowContentProvider memoryToolWindowContentProvider, IDsToolWindowService toolWindowService) { var cmds = wpfCommandService.GetCommands(ControlConstants.GUID_MAINWINDOW); for (int i = 0; i < DebugRoutedCommands.ShowMemoryCommands.Length; i++) { var info = memoryToolWindowContentProvider.Contents[i]; cmds.Add(DebugRoutedCommands.ShowMemoryCommands[i], new RelayCommand(a => toolWindowService.Show(info.Guid))); } for (int i = 0; i < DebugRoutedCommands.ShowMemoryCommands.Length && i < 10; i++) { var cmd = DebugRoutedCommands.ShowMemoryCommands[i]; if (i == 0) cmds.Add(cmd, ModifierKeys.Alt, Key.D6); cmds.Add(cmd, ModifierKeys.Control | ModifierKeys.Shift, Key.D0 + (i + 1) % 10); } }
public static void Analyze(IDsToolWindowService toolWindowService, Lazy <IAnalyzerService> analyzerService, IDecompiler decompiler, IMemberRef member) { var memberDef = ResolveReference(member); var type = memberDef as TypeDef; if (type != null) { toolWindowService.Show(AnalyzerToolWindowContent.THE_GUID); analyzerService.Value.Add(new TypeNode(type)); } var field = memberDef as FieldDef; if (field != null) { toolWindowService.Show(AnalyzerToolWindowContent.THE_GUID); analyzerService.Value.Add(new FieldNode(field)); } var method = memberDef as MethodDef; if (method != null) { toolWindowService.Show(AnalyzerToolWindowContent.THE_GUID); analyzerService.Value.Add(new MethodNode(method)); } var propertyAnalyzer = PropertyNode.TryCreateAnalyzer(member, decompiler); if (propertyAnalyzer != null) { toolWindowService.Show(AnalyzerToolWindowContent.THE_GUID); analyzerService.Value.Add(propertyAnalyzer); } var eventAnalyzer = EventNode.TryCreateAnalyzer(member, decompiler); if (eventAnalyzer != null) { toolWindowService.Show(AnalyzerToolWindowContent.THE_GUID); analyzerService.Value.Add(eventAnalyzer); } }
AnalyzeCommandLoader(IDsToolWindowService toolWindowService, IWpfCommandService wpfCommandService, IDocumentTabService documentTabService, Lazy<IAnalyzerService> analyzerService, IDecompilerService decompilerService) { this.toolWindowService = toolWindowService; this.documentTabService = documentTabService; this.analyzerService = analyzerService; this.decompilerService = decompilerService; var cmds = wpfCommandService.GetCommands(ControlConstants.GUID_DOCUMENTVIEWER_UICONTEXT); cmds.Add(AnalyzeRoutedCommand, TextEditor_Executed, TextEditor_CanExecute, ModifierKeys.Control | ModifierKeys.Shift, Key.R); cmds.Add(AnalyzeRoutedCommand, ShowAnalyzerExecuted, ShowAnalyzerCanExecute, ModifierKeys.Control | ModifierKeys.Shift, Key.R); cmds = wpfCommandService.GetCommands(ControlConstants.GUID_DOCUMENT_TREEVIEW); cmds.Add(AnalyzeRoutedCommand, DocumentTreeView_Executed, DocumentTreeView_CanExecute, ModifierKeys.Control | ModifierKeys.Shift, Key.R); cmds.Add(AnalyzeRoutedCommand, ShowAnalyzerExecuted, ShowAnalyzerCanExecute, ModifierKeys.Control | ModifierKeys.Shift, Key.R); cmds = wpfCommandService.GetCommands(ControlConstants.GUID_ANALYZER_TREEVIEW); cmds.Add(AnalyzeRoutedCommand, AnalyzerTreeView_Executed, AnalyzerTreeView_CanExecute, ModifierKeys.Control | ModifierKeys.Shift, Key.R); cmds.Add(AnalyzeRoutedCommand, ShowAnalyzerExecuted, ShowAnalyzerCanExecute, ModifierKeys.Control | ModifierKeys.Shift, Key.R); cmds = wpfCommandService.GetCommands(ControlConstants.GUID_SEARCH_LISTBOX); cmds.Add(AnalyzeRoutedCommand, SearchListBox_Executed, SearchListBox_CanExecute, ModifierKeys.Control | ModifierKeys.Shift, Key.R); cmds.Add(AnalyzeRoutedCommand, ShowAnalyzerExecuted, ShowAnalyzerCanExecute, ModifierKeys.Control | ModifierKeys.Shift, Key.R); }
AnalyzeCommandLoader(IDsToolWindowService toolWindowService, IWpfCommandService wpfCommandService, IDocumentTabService documentTabService, Lazy <IAnalyzerService> analyzerService, IDecompilerService decompilerService) { this.toolWindowService = toolWindowService; this.documentTabService = documentTabService; this.analyzerService = analyzerService; this.decompilerService = decompilerService; var cmds = wpfCommandService.GetCommands(ControlConstants.GUID_DOCUMENTVIEWER_UICONTEXT); cmds.Add(AnalyzeRoutedCommand, TextEditor_Executed, TextEditor_CanExecute, ModifierKeys.Control, Key.R); cmds.Add(AnalyzeRoutedCommand, ShowAnalyzerExecuted, ShowAnalyzerCanExecute, ModifierKeys.Control, Key.R); cmds = wpfCommandService.GetCommands(ControlConstants.GUID_DOCUMENT_TREEVIEW); cmds.Add(AnalyzeRoutedCommand, DocumentTreeView_Executed, DocumentTreeView_CanExecute, ModifierKeys.Control, Key.R); cmds.Add(AnalyzeRoutedCommand, ShowAnalyzerExecuted, ShowAnalyzerCanExecute, ModifierKeys.Control, Key.R); cmds = wpfCommandService.GetCommands(ControlConstants.GUID_ANALYZER_TREEVIEW); cmds.Add(AnalyzeRoutedCommand, AnalyzerTreeView_Executed, AnalyzerTreeView_CanExecute, ModifierKeys.Control, Key.R); cmds.Add(AnalyzeRoutedCommand, ShowAnalyzerExecuted, ShowAnalyzerCanExecute, ModifierKeys.Control, Key.R); cmds = wpfCommandService.GetCommands(ControlConstants.GUID_SEARCH_LISTBOX); cmds.Add(AnalyzeRoutedCommand, SearchListBox_Executed, SearchListBox_CanExecute, ModifierKeys.Control, Key.R); cmds.Add(AnalyzeRoutedCommand, ShowAnalyzerExecuted, ShowAnalyzerCanExecute, ModifierKeys.Control, Key.R); }
CloseAllTabGroupsButThisCtxMenuCommand(IDsToolWindowService toolWindowService) : base(toolWindowService) { }
MoveTabGroupAfterNextTabGroupCtxMenuCommand(IDsToolWindowService toolWindowService) : base(toolWindowService) { }
MoveAllToPreviousTabGroupCtxMenuCommand(IDsToolWindowService toolWindowService) : base(toolWindowService) { }
CloseTabGroupCtxMenuCommand(IDsToolWindowService toolWindowService) : base(toolWindowService) { }
MoveGroupTWBottomCtxMenuCommand(IDsToolWindowService toolWindowService) : base(toolWindowService) { }
MoveAllToNextTabGroupCtxMenuCommand(IDsToolWindowService toolWindowService) : base(toolWindowService) { }
HideTWCtxMenuCommand(IDsToolWindowService toolWindowService) : base(toolWindowService) { }
MergeAllTabGroupsCtxMenuCommand(IDsToolWindowService toolWindowService) : base(toolWindowService) { }
UseHorizontalTabGroupsCtxMenuCommand(IDsToolWindowService toolWindowService) : base(toolWindowService) { }
static void Analyze(IDsToolWindowService toolWindowService, Lazy<IAnalyzerService> analyzerService, IDecompiler decompiler, IEnumerable<IMemberRef> mrs) { foreach (var mr in mrs) Analyze(toolWindowService, analyzerService, decompiler, mr); }
public static void Analyze(IDsToolWindowService toolWindowService, Lazy<IAnalyzerService> analyzerService, IDecompiler decompiler, IMemberRef member) { var memberDef = ResolveReference(member); var type = memberDef as TypeDef; if (type != null) { toolWindowService.Show(AnalyzerToolWindowContent.THE_GUID); analyzerService.Value.Add(new TypeNode(type)); } var field = memberDef as FieldDef; if (field != null) { toolWindowService.Show(AnalyzerToolWindowContent.THE_GUID); analyzerService.Value.Add(new FieldNode(field)); } var method = memberDef as MethodDef; if (method != null) { toolWindowService.Show(AnalyzerToolWindowContent.THE_GUID); analyzerService.Value.Add(new MethodNode(method)); } var propertyAnalyzer = PropertyNode.TryCreateAnalyzer(member, decompiler); if (propertyAnalyzer != null) { toolWindowService.Show(AnalyzerToolWindowContent.THE_GUID); analyzerService.Value.Add(propertyAnalyzer); } var eventAnalyzer = EventNode.TryCreateAnalyzer(member, decompiler); if (eventAnalyzer != null) { toolWindowService.Show(AnalyzerToolWindowContent.THE_GUID); analyzerService.Value.Add(eventAnalyzer); } }
SearchCommand(IDsToolWindowService toolWindowService, IDecompilerService decompilerService, Lazy<IAnalyzerService> analyzerService) { this.toolWindowService = toolWindowService; this.decompilerService = decompilerService; this.analyzerService = analyzerService; }
MoveTabGroupBeforePreviousTabGroupCtxMenuCommand(IDsToolWindowService toolWindowService) : base(toolWindowService) { }
MoveGroupTWRightCtxMenuCommand(IDsToolWindowService toolWindowService) : base(toolWindowService) { }
public ToolWindowGroupContext(IDsToolWindowService toolWindowService, IToolWindowGroup toolWindowGroup) { DsToolWindowService = toolWindowService; ToolWindowGroupService = toolWindowGroup.ToolWindowGroupService; ToolWindowGroup = toolWindowGroup; }
MemoryWindowService(Lazy<MemoryToolWindowContentProvider> memoryToolWindowContentProvider, IDsToolWindowService toolWindowService) { this.memoryToolWindowContentProvider = memoryToolWindowContentProvider; this.toolWindowService = toolWindowService; }
UseVerticalTabGroupsCtxMenuCommand(IDsToolWindowService toolWindowService) : base(toolWindowService) { }
MoveTWLeftCtxMenuCommand(IDsToolWindowService toolWindowService) : base(toolWindowService) { }
protected CtxMenuToolWindowGroupCommand(IDsToolWindowService toolWindowService) { this.toolWindowService = toolWindowService; }
CloseAllTabsTWCtxMenuCommand(IDsToolWindowService toolWindowService) : base(toolWindowService) { }
AppCommandLineArgsHandler(IDsToolWindowService toolWindowService, Lazy<ISearchService> searchService) { this.toolWindowService = toolWindowService; this.searchService = searchService; }