public override void Execute(BreakpointCtxMenuContext context) { if (context.SelectedItems.Length == 1) { GoToSourceBreakpointCtxMenuCommand.GoTo(moduleIdProvider, fileTabManager, moduleLoader, context.SelectedItems[0], true); } }
protected override void Execute(BreakpointCtxMenuContext context) { if (context.SelectedItems.Length == 1) { GoToSourceBreakpointCtxMenuCommand.GoTo(context.SelectedItems[0], true); } }
void listView_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (!UIUtils.IsLeftDoubleClick <ListViewItem>(listView, e)) { return; } bool newTab = Keyboard.Modifiers == ModifierKeys.Shift || Keyboard.Modifiers == ModifierKeys.Control; GoToSourceBreakpointCtxMenuCommand.GoTo(listView.SelectedItem as BreakpointVM, newTab); }
void BreakpointsControl_BreakpointsListViewDoubleClick(object sender, EventArgs e) { bool newTab = Keyboard.Modifiers == ModifierKeys.Shift || Keyboard.Modifiers == ModifierKeys.Control; GoToSourceBreakpointCtxMenuCommand.GoTo(moduleIdProvider, fileTabManager, moduleLoader, this.BreakpointsControl.ListView.SelectedItem as BreakpointVM, newTab); }
BreakpointsContentCommandLoader(IWpfCommandManager wpfCommandManager, CopyBreakpointCtxMenuCommand copyCmd, DeleteBreakpointCtxMenuCommand deleteCmd, GoToSourceBreakpointCtxMenuCommand gotoSrcCmd, GoToSourceNewTabBreakpointCtxMenuCommand gotoSrcNewTabCmd, ToggleEnableBreakpointCtxMenuCommand toggleBpCmd) { var cmds = wpfCommandManager.GetCommands(ControlConstants.GUID_DEBUGGER_BREAKPOINTS_LISTVIEW); cmds.Add(ApplicationCommands.Copy, new BreakpointCtxMenuCommandProxy(copyCmd)); cmds.Add(ApplicationCommands.Delete, new BreakpointCtxMenuCommandProxy(deleteCmd)); cmds.Add(new BreakpointCtxMenuCommandProxy(gotoSrcCmd), ModifierKeys.None, Key.Enter); cmds.Add(new BreakpointCtxMenuCommandProxy(gotoSrcNewTabCmd), ModifierKeys.Control, Key.Enter); cmds.Add(new BreakpointCtxMenuCommandProxy(gotoSrcNewTabCmd), ModifierKeys.Shift, Key.Enter); cmds.Add(new BreakpointCtxMenuCommandProxy(toggleBpCmd), ModifierKeys.None, Key.Space); }