diff options
Diffstat (limited to 'debug')
5 files changed, 83 insertions, 1 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IDebugNewExecutableHandler.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IDebugNewExecutableHandler.java new file mode 100644 index 00000000000..ecde45f0427 --- /dev/null +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IDebugNewExecutableHandler.java @@ -0,0 +1,22 @@ +/******************************************************************************* + * Copyright (c) 2012 Mentor Graphics 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: + * Mentor Graphics - Initial API and implementation + *******************************************************************************/ + +package org.eclipse.cdt.debug.core.model; + +import org.eclipse.debug.core.commands.IDebugCommandHandler; + +/** + * Command handler for the "Debug New Executable" command. + * + * @since 7.3 + */ +public interface IDebugNewExecutableHandler extends IDebugCommandHandler { +} diff --git a/debug/org.eclipse.cdt.debug.ui/icons/obj16/new_exec.gif b/debug/org.eclipse.cdt.debug.ui/icons/obj16/new_exec.gif Binary files differnew file mode 100755 index 00000000000..78ca91c6dab --- /dev/null +++ b/debug/org.eclipse.cdt.debug.ui/icons/obj16/new_exec.gif diff --git a/debug/org.eclipse.cdt.debug.ui/plugin.properties b/debug/org.eclipse.cdt.debug.ui/plugin.properties index 34cbb7d2d35..2266d66e86e 100644 --- a/debug/org.eclipse.cdt.debug.ui/plugin.properties +++ b/debug/org.eclipse.cdt.debug.ui/plugin.properties @@ -242,3 +242,9 @@ OpenNewView.name = Open New View # Disassembly Ruler Column extension point extPoint.disassemblyRulerColumn=Disassembly Ruler Column + +# Debug New Executable Command +DebugNewExecutable.name=Debug New Executable +DebugNewExecutable.description=Debug a new executable +DebugNewExecutable.label=Debug New Executable... +DebugNewExecutable.tooltip=Debug a new executable diff --git a/debug/org.eclipse.cdt.debug.ui/plugin.xml b/debug/org.eclipse.cdt.debug.ui/plugin.xml index 0188aa81f49..d2b3fc1b6f1 100644 --- a/debug/org.eclipse.cdt.debug.ui/plugin.xml +++ b/debug/org.eclipse.cdt.debug.ui/plugin.xml @@ -2012,7 +2012,12 @@ id="org.eclipse.cdt.debug.ui.command.connect" name="%Connect.name"> </command> - + <command + categoryId="org.eclipse.cdt.debug.ui.category.debugViewLayout" + description="%DebugNewExecutable.description" + id="org.eclipse.cdt.debug.ui.command.debugNewExecutable" + name="%DebugNewExecutable.name"> + </command> </extension> <extension point="org.eclipse.ui.handlers"> @@ -2079,6 +2084,10 @@ class="org.eclipse.cdt.debug.internal.ui.commands.ConnectCommandHandler" commandId="org.eclipse.cdt.debug.ui.command.connect"> </handler> + <handler + class="org.eclipse.cdt.debug.internal.ui.commands.DebugNewExecutableHandler" + commandId="org.eclipse.cdt.debug.ui.command.debugNewExecutable"> + </handler> </extension> <extension point="org.eclipse.core.expressions.definitions"> @@ -2520,6 +2529,28 @@ </visibleWhen> </command> </menuContribution> +<!-- + <menuContribution + locationURI="toolbar:org.eclipse.debug.ui.DebugView?before=stepGroup"> + <command + commandId="org.eclipse.cdt.debug.ui.command.debugNewExecutable" + icon="icons/obj16/new_exec.gif" + label="%DebugNewExecutable.label" + style="push" + tooltip="%DebugNewExecutable.tooltip"> + </command> + </menuContribution> +--> + <menuContribution + locationURI="popup:org.eclipse.debug.ui.DebugView?before=emptyLaunchGroup"> + <command + commandId="org.eclipse.cdt.debug.ui.command.debugNewExecutable" + icon="icons/obj16/new_exec.gif" + label="%DebugNewExecutable.label" + style="push" + tooltip="%DebugNewExecutable.tooltip"> + </command> + </menuContribution> <!-- Connect contributions to debug view menu, toolbar menu --> <menuContribution diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/DebugNewExecutableHandler.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/DebugNewExecutableHandler.java new file mode 100644 index 00000000000..dfd77e06a7c --- /dev/null +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/DebugNewExecutableHandler.java @@ -0,0 +1,23 @@ +/******************************************************************************* + * Copyright (c) 2012 Mentor Graphics 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: + * Mentor Graphics - Initial API and implementation + *******************************************************************************/ + +package org.eclipse.cdt.debug.internal.ui.commands; + +import org.eclipse.cdt.debug.core.model.IDebugNewExecutableHandler; +import org.eclipse.debug.ui.actions.DebugCommandHandler; + +public class DebugNewExecutableHandler extends DebugCommandHandler { + + @Override + protected Class<?> getCommandType() { + return IDebugNewExecutableHandler.class; + } +} |