예제 #1
0
 public override bool IsEnabled(CallStackCtxMenuContext context) => SwitchToFrameCallStackCtxMenuCommand.GetFrame(context) != null;
예제 #2
0
 public override void Execute(CallStackCtxMenuContext context) =>
 SwitchToFrameCallStackCtxMenuCommand.Execute(moduleIdProvider, stackFrameManager.Value, fileTabManager, moduleLoader.Value, SwitchToFrameCallStackCtxMenuCommand.GetFrame(context), true);
예제 #3
0
        void CallStackControl_CallStackListViewDoubleClick(object sender, EventArgs e)
        {
            bool newTab = Keyboard.Modifiers == ModifierKeys.Shift || Keyboard.Modifiers == ModifierKeys.Control;

            SwitchToFrameCallStackCtxMenuCommand.Execute(stackFrameManager.Value, fileTabManager, moduleLoader.Value, callStackControl.ListView.SelectedItem as CallStackFrameVM, newTab);
        }
예제 #4
0
        CallStackContentCommandLoader(IWpfCommandManager wpfCommandManager, CopyCallStackCtxMenuCommand copyCmd, RunToCursorCallStackCtxMenuCommand runToCursorCmd, SwitchToFrameCallStackCtxMenuCommand switchToFrameCmd, SwitchToFrameNewTabCallStackCtxMenuCommand switchToFrameNewTabCmd)
        {
            var cmds = wpfCommandManager.GetCommands(CommandConstants.GUID_DEBUGGER_CALLSTACK_LISTVIEW);

            cmds.Add(ApplicationCommands.Copy, new CallStackCtxMenuCommandProxy(copyCmd));
            cmds.Add(new CallStackCtxMenuCommandProxy(runToCursorCmd), ModifierKeys.Control, Key.F10);
            cmds.Add(new CallStackCtxMenuCommandProxy(switchToFrameCmd), ModifierKeys.None, Key.Enter);
            cmds.Add(new CallStackCtxMenuCommandProxy(switchToFrameNewTabCmd), ModifierKeys.Control, Key.Enter);
            cmds.Add(new CallStackCtxMenuCommandProxy(switchToFrameNewTabCmd), ModifierKeys.Shift, Key.Enter);
        }
예제 #5
0
        public override bool IsEnabled(CallStackCtxMenuContext context)
        {
            var vm = SwitchToFrameCallStackCtxMenuCommand.GetFrame(context);

            return(vm != null && debugManager.Value.CanRunTo(vm.Frame));
        }
예제 #6
0
        public override bool IsEnabled(CallStackCtxMenuContext context)
        {
            var vm = SwitchToFrameCallStackCtxMenuCommand.GetFrame(context);

            return(vm != null && FrameUtils.CanGoToDisasm(vm.Frame));
        }