From bb755a01befd30c031965681aa8af8575bce52c5 Mon Sep 17 00:00:00 2001 From: aleon Date: Tue, 30 Apr 2013 11:59:16 -0400 Subject: Bug 244865 – Support for Step Into Selection First Implementation: * Non-stop as well as All-stop debugging * Function / Method name validation, arguments size validation (no arguments signature yet) * Ctrl-F5 as short key (consistent with JDT) * Hyper link support with Ctrl-Shift click * Junit Test (Services part) Change-Id: I58903b4b6b7f9fd39a827f5297ad23ac3f96186d Reviewed-on: https://git.eclipse.org/r/11305 Reviewed-by: Marc-Andre Laperle IP-Clean: Marc-Andre Laperle Tested-by: Marc-Andre Laperle --- .../core/model/IStepIntoSelectionHandler.java | 20 ++++++ debug/org.eclipse.cdt.debug.ui/plugin.properties | 5 ++ debug/org.eclipse.cdt.debug.ui/plugin.xml | 71 ++++++++++++++++++++++ .../commands/StepIntoSelectionCommandHandler.java | 22 +++++++ 4 files changed, 118 insertions(+) create mode 100644 debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IStepIntoSelectionHandler.java create mode 100644 debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/StepIntoSelectionCommandHandler.java (limited to 'debug') diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IStepIntoSelectionHandler.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IStepIntoSelectionHandler.java new file mode 100644 index 00000000000..c3006dd509f --- /dev/null +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IStepIntoSelectionHandler.java @@ -0,0 +1,20 @@ +/******************************************************************************* + * Copyright (c) 2013 Ericsson AB and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Alvaro Sanchez-Leon (Ericsson AB) - Support for Step into selection (bug 244865) + *******************************************************************************/ +package org.eclipse.cdt.debug.core.model; + +import org.eclipse.debug.core.commands.IDebugCommandHandler; + +/** + * @since 7.3 + * + */ +public interface IStepIntoSelectionHandler extends IDebugCommandHandler { +} diff --git a/debug/org.eclipse.cdt.debug.ui/plugin.properties b/debug/org.eclipse.cdt.debug.ui/plugin.properties index 2266d66e86e..0f70afeed03 100644 --- a/debug/org.eclipse.cdt.debug.ui/plugin.properties +++ b/debug/org.eclipse.cdt.debug.ui/plugin.properties @@ -12,6 +12,7 @@ # Dobrin Alexiev (Texas Instruments) - initial API and implementation (bug 336876) # Marc Khouzam (Ericsson) - Added support for connect command (Bug 365601) # Marc Dumais (Ericsson) - Added support for reverse debug action (Bug 365776) +# Alvaro Sanchez-Leon (Ericsson AB) - Support for Step into selection (bug 244865) ############################################################################### pluginName=C/C++ Development Tools Debugger UI @@ -248,3 +249,7 @@ DebugNewExecutable.name=Debug New Executable DebugNewExecutable.description=Debug a new executable DebugNewExecutable.label=Debug New Executable... DebugNewExecutable.tooltip=Debug a new executable + +# Step into selection +popup.stepIntoSelection.description=Step into the current selected statement +popup.stepIntoSelection.name=Step Into Selection diff --git a/debug/org.eclipse.cdt.debug.ui/plugin.xml b/debug/org.eclipse.cdt.debug.ui/plugin.xml index d2b3fc1b6f1..3ecc0ee12cd 100644 --- a/debug/org.eclipse.cdt.debug.ui/plugin.xml +++ b/debug/org.eclipse.cdt.debug.ui/plugin.xml @@ -2088,6 +2088,20 @@ class="org.eclipse.cdt.debug.internal.ui.commands.DebugNewExecutableHandler" commandId="org.eclipse.cdt.debug.ui.command.debugNewExecutable"> + + + + + + + + + + @@ -2180,6 +2194,10 @@ schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" sequence="SHIFT+F7"> + @@ -2191,6 +2209,13 @@ id="org.eclipse.cdt.debug.command.breakpointProperties" name="%BreakpointPropertiesCommand.name"> + + @@ -2572,6 +2597,52 @@ style="push" tooltip="%Connect.tooltip"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/StepIntoSelectionCommandHandler.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/StepIntoSelectionCommandHandler.java new file mode 100644 index 00000000000..f9a9b988cc2 --- /dev/null +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/StepIntoSelectionCommandHandler.java @@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2013 Ericsson AB and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Alvaro Sanchez-Leon (Ericsson AB) - Support for Step into selection (bug 244865) + *******************************************************************************/ +package org.eclipse.cdt.debug.internal.ui.commands; + +import org.eclipse.cdt.debug.core.model.IStepIntoSelectionHandler; +import org.eclipse.debug.ui.actions.DebugCommandHandler; + + +public class StepIntoSelectionCommandHandler extends DebugCommandHandler { + @Override + protected Class getCommandType() { + return IStepIntoSelectionHandler.class; + } +} -- cgit v1.2.3