Пример #1
0
        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);
        }
Пример #2
0
 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;
 }
Пример #4
0
		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);
		}
Пример #6
0
        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);
        }
Пример #7
0
 static void Analyze(IDsToolWindowService toolWindowService, Lazy <IAnalyzerService> analyzerService, IDecompiler decompiler, IEnumerable <IMemberRef> mrs)
 {
     foreach (var mr in mrs)
     {
         Analyze(toolWindowService, analyzerService, decompiler, mr);
     }
 }
Пример #8
0
		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));
 }
Пример #10
0
 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);
 }
Пример #11
0
        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);
        }
Пример #12
0
        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);
        }
Пример #13
0
        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);
        }
Пример #14
0
 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;
 }
Пример #15
0
        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);
        }
Пример #16
0
		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);
			}
		}
Пример #17
0
        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);
            }
        }
Пример #18
0
		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);
		}
Пример #19
0
        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);
        }
Пример #20
0
 CloseAllTabGroupsButThisCtxMenuCommand(IDsToolWindowService toolWindowService)
     : base(toolWindowService)
 {
 }
Пример #21
0
 MoveTabGroupAfterNextTabGroupCtxMenuCommand(IDsToolWindowService toolWindowService)
     : base(toolWindowService)
 {
 }
Пример #22
0
 MoveAllToPreviousTabGroupCtxMenuCommand(IDsToolWindowService toolWindowService)
     : base(toolWindowService)
 {
 }
Пример #23
0
 CloseTabGroupCtxMenuCommand(IDsToolWindowService toolWindowService)
     : base(toolWindowService)
 {
 }
Пример #24
0
 MoveGroupTWBottomCtxMenuCommand(IDsToolWindowService toolWindowService)
     : base(toolWindowService)
 {
 }
Пример #25
0
 MoveAllToNextTabGroupCtxMenuCommand(IDsToolWindowService toolWindowService)
     : base(toolWindowService)
 {
 }
Пример #26
0
		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);
		}
Пример #27
0
 HideTWCtxMenuCommand(IDsToolWindowService toolWindowService)
     : base(toolWindowService)
 {
 }
Пример #28
0
 MergeAllTabGroupsCtxMenuCommand(IDsToolWindowService toolWindowService)
     : base(toolWindowService)
 {
 }
Пример #29
0
 UseHorizontalTabGroupsCtxMenuCommand(IDsToolWindowService toolWindowService)
     : base(toolWindowService)
 {
 }
Пример #30
0
		static void Analyze(IDsToolWindowService toolWindowService, Lazy<IAnalyzerService> analyzerService, IDecompiler decompiler, IEnumerable<IMemberRef> mrs) {
			foreach (var mr in mrs)
				Analyze(toolWindowService, analyzerService, decompiler, mr);
		}
Пример #31
0
		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);
			}
		}
Пример #32
0
			SearchCommand(IDsToolWindowService toolWindowService, IDecompilerService decompilerService, Lazy<IAnalyzerService> analyzerService) {
				this.toolWindowService = toolWindowService;
				this.decompilerService = decompilerService;
				this.analyzerService = analyzerService;
			}
Пример #33
0
 MoveTabGroupBeforePreviousTabGroupCtxMenuCommand(IDsToolWindowService toolWindowService)
     : base(toolWindowService)
 {
 }
Пример #34
0
 MoveGroupTWRightCtxMenuCommand(IDsToolWindowService toolWindowService)
     : base(toolWindowService)
 {
 }
Пример #35
0
 public ToolWindowGroupContext(IDsToolWindowService toolWindowService, IToolWindowGroup toolWindowGroup)
 {
     DsToolWindowService    = toolWindowService;
     ToolWindowGroupService = toolWindowGroup.ToolWindowGroupService;
     ToolWindowGroup        = toolWindowGroup;
 }
Пример #36
0
		MemoryWindowService(Lazy<MemoryToolWindowContentProvider> memoryToolWindowContentProvider, IDsToolWindowService toolWindowService) {
			this.memoryToolWindowContentProvider = memoryToolWindowContentProvider;
			this.toolWindowService = toolWindowService;
		}
Пример #37
0
 UseVerticalTabGroupsCtxMenuCommand(IDsToolWindowService toolWindowService)
     : base(toolWindowService)
 {
 }
Пример #38
0
 MoveTWLeftCtxMenuCommand(IDsToolWindowService toolWindowService)
     : base(toolWindowService)
 {
 }
Пример #39
0
 protected CtxMenuToolWindowGroupCommand(IDsToolWindowService toolWindowService)
 {
     this.toolWindowService = toolWindowService;
 }
Пример #40
0
		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);
		}
Пример #41
0
 CloseAllTabsTWCtxMenuCommand(IDsToolWindowService toolWindowService)
     : base(toolWindowService)
 {
 }
Пример #42
0
		AppCommandLineArgsHandler(IDsToolWindowService toolWindowService, Lazy<ISearchService> searchService) {
			this.toolWindowService = toolWindowService;
			this.searchService = searchService;
		}