Skip to main content
summaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorMikhail Khodjaiants2013-01-18 15:07:47 -0500
committerMikhail Khodjaiants2013-01-21 09:21:28 -0500
commitd55bca53a5b12ffce1aa9574754cdd6704d1d351 (patch)
treef92c29fe89cf85a19d7ea74b40dceaa0b25e09a6 /debug
parentca03d0d23ac88ed9f85a5ca693253da833cc9378 (diff)
downloadorg.eclipse.cdt-d55bca53a5b12ffce1aa9574754cdd6704d1d351.tar.gz
org.eclipse.cdt-d55bca53a5b12ffce1aa9574754cdd6704d1d351.tar.xz
org.eclipse.cdt-d55bca53a5b12ffce1aa9574754cdd6704d1d351.zip
Bug 344890 - [remote] Cannot start a new process on a remote target with
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IDebugNewExecutableHandler.java22
-rwxr-xr-xdebug/org.eclipse.cdt.debug.ui/icons/obj16/new_exec.gifbin0 -> 949 bytes
-rw-r--r--debug/org.eclipse.cdt.debug.ui/plugin.properties6
-rw-r--r--debug/org.eclipse.cdt.debug.ui/plugin.xml33
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/DebugNewExecutableHandler.java23
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 0000000000..ecde45f042
--- /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
new file mode 100755
index 0000000000..78ca91c6da
--- /dev/null
+++ b/debug/org.eclipse.cdt.debug.ui/icons/obj16/new_exec.gif
Binary files differ
diff --git a/debug/org.eclipse.cdt.debug.ui/plugin.properties b/debug/org.eclipse.cdt.debug.ui/plugin.properties
index 34cbb7d2d3..2266d66e86 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 0188aa81f4..d2b3fc1b6f 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 0000000000..dfd77e06a7
--- /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;
+ }
+}

Back to the top