Skip to main content
summaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorPatrick Chuong2011-03-10 15:38:23 -0500
committerPatrick Chuong2011-03-10 15:38:23 -0500
commite9ccc03be35fe2f7a030ffec3826c6cff93ef7c4 (patch)
treee08123409798f6bec6fd5855af8456ae9dd1f393 /debug
parentceb221e71458d4dd8716db466b8687b8907ea8ee (diff)
downloadorg.eclipse.cdt-e9ccc03be35fe2f7a030ffec3826c6cff93ef7c4.tar.gz
org.eclipse.cdt-e9ccc03be35fe2f7a030ffec3826c6cff93ef7c4.tar.xz
org.eclipse.cdt-e9ccc03be35fe2f7a030ffec3826c6cff93ef7c4.zip
Bug 336876 - [multicore] Grouping of Execution Elements for DSF debugger feature
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IGroupDebugContextsHandler.java22
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IUngroupDebugContextsHandler.java22
-rw-r--r--debug/org.eclipse.cdt.debug.ui/plugin.properties10
-rw-r--r--debug/org.eclipse.cdt.debug.ui/plugin.xml89
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/GroupDebugContextsCommandHandler.java27
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/UngroupDebugContextsCommandHandler.java27
6 files changed, 197 insertions, 0 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IGroupDebugContextsHandler.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IGroupDebugContextsHandler.java
new file mode 100644
index 0000000000..77cc075a8b
--- /dev/null
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IGroupDebugContextsHandler.java
@@ -0,0 +1,22 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Texas Instruments, Inc. 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:
+ * Dobrin Alexiev (Texas Instruments) - initial API and implementation (bug 336876)
+********************************************************************************/
+package org.eclipse.cdt.debug.core.model;
+
+import org.eclipse.debug.core.commands.IDebugCommandHandler;
+
+/**
+ * Handler interface to perform grouping of debug contexts.
+ *
+ * @since 7.1
+ */
+public interface IGroupDebugContextsHandler extends IDebugCommandHandler {
+
+}
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IUngroupDebugContextsHandler.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IUngroupDebugContextsHandler.java
new file mode 100644
index 0000000000..d25b81ad6e
--- /dev/null
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IUngroupDebugContextsHandler.java
@@ -0,0 +1,22 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Texas Instruments, Inc. 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:
+ * Dobrin Alexiev (Texas Instruments) - initial API and implementation (bug 336876)
+********************************************************************************/
+package org.eclipse.cdt.debug.core.model;
+
+import org.eclipse.debug.core.commands.IDebugCommandHandler;
+
+/**
+ * Handler interface to perform ungrouping of debug contexts.
+ *
+ * @since 7.1
+ */
+public interface IUngroupDebugContextsHandler extends IDebugCommandHandler {
+
+}
diff --git a/debug/org.eclipse.cdt.debug.ui/plugin.properties b/debug/org.eclipse.cdt.debug.ui/plugin.properties
index d10c308b01..719707c823 100644
--- a/debug/org.eclipse.cdt.debug.ui/plugin.properties
+++ b/debug/org.eclipse.cdt.debug.ui/plugin.properties
@@ -9,6 +9,7 @@
# QNX Software Systems - Initial API and implementation
# IBM Corporation
# Patrick Chuong (Texas Instruments) - Pin and Clone Supports (Bug 331781)
+# Dobrin Alexiev (Texas Instruments) - initial API and implementation (bug 336876)
###############################################################################
pluginName=C/C++ Development Tools Debugger UI
@@ -195,6 +196,15 @@ Uncall.name = Uncall
Uncall.description = Perform Uncall
Uncall.label = Uncall
+# Debug View layout
+DebugViewLayoutActionSet.label = Debug View Layout
+DebugViewLayoutCategory.name = Debug View Layout Commands
+DebugViewLayoutCategory.description = Set of commands for controlling the Debug View Layout
+GroupDebugContexts.name = Group
+GroupDebugContexts.description = Groups the selected debug contexts
+UngroupDebugContexts.name = Ungroup
+UngroupDebugContexts.description = Ungroups the selected debug contexts
+
# Menu for selecting breakpoint toggle type
BreakpointTypes.label=B&reakpoint Types
diff --git a/debug/org.eclipse.cdt.debug.ui/plugin.xml b/debug/org.eclipse.cdt.debug.ui/plugin.xml
index 367410544c..94262f5193 100644
--- a/debug/org.eclipse.cdt.debug.ui/plugin.xml
+++ b/debug/org.eclipse.cdt.debug.ui/plugin.xml
@@ -1818,6 +1818,11 @@
label="%TracepointActionSet.label"
visible="false">
</actionSet>
+ <actionSet
+ id="org.eclipse.cdt.debug.ui.debugViewLayoutActionSet"
+ label="%DebugViewLayoutActionSet.label"
+ visible="false">
+ </actionSet>
</extension>
<extension
point="org.eclipse.ui.commands">
@@ -1897,6 +1902,23 @@
helpContextId="view_memory_context"
name="%command.viewMemory.name">
</command>
+ <category
+ description="%DebugViewLayoutCategory.description"
+ id="org.eclipse.cdt.debug.ui.category.debugViewLayout"
+ name="%DebugViewLayoutCategory.name">
+ </category>
+ <command
+ categoryId="org.eclipse.cdt.debug.ui.category.debugViewLayout"
+ description="%GroupDebugContexts.description"
+ id="org.eclipse.cdt.debug.ui.command.groupDebugContexts"
+ name="%GroupDebugContexts.name">
+ </command>
+ <command
+ categoryId="org.eclipse.cdt.debug.ui.category.debugViewLayout"
+ description="%UngroupDebugContexts.description"
+ id="org.eclipse.cdt.debug.ui.command.ungroupDebugContexts"
+ name="%UngroupDebugContexts.name">
+ </command>
</extension>
<extension
point="org.eclipse.ui.handlers">
@@ -1951,6 +1973,14 @@
</with>
</activeWhen>
</handler>
+ <handler
+ class="org.eclipse.cdt.debug.internal.ui.commands.GroupDebugContextsCommandHandler"
+ commandId="org.eclipse.cdt.debug.ui.command.groupDebugContexts">
+ </handler>
+ <handler
+ class="org.eclipse.cdt.debug.internal.ui.commands.UngroupDebugContextsCommandHandler"
+ commandId="org.eclipse.cdt.debug.ui.command.ungroupDebugContexts">
+ </handler>
</extension>
<extension
point="org.eclipse.core.expressions.definitions">
@@ -2004,6 +2034,18 @@
</iterate>
</with>
</definition>
+ <definition
+ id="org.eclipse.cdt.debug.ui.testDebugViewLayoutActionSetActive">
+ <with
+ variable="activeContexts">
+ <iterate
+ operator="or">
+ <equals
+ value="org.eclipse.cdt.debug.ui.debugViewLayoutActionSet">
+ </equals>
+ </iterate>
+ </with>
+ </definition>
</extension>
<extension
point="org.eclipse.ui.bindings">
@@ -2297,6 +2339,53 @@
</visibleWhen>
</command>
</menuContribution>
+ <menuContribution
+ locationURI="popup:org.eclipse.debug.ui.DebugView?after=emptyStepGroup">
+ <command
+ commandId="org.eclipse.cdt.debug.ui.command.groupDebugContexts"
+ label="%GroupDebugContexts.name">
+ <visibleWhen
+ checkEnabled="false">
+ <and>
+ <reference
+ definitionId="org.eclipse.cdt.debug.ui.testDebugViewLayoutActionSetActive">
+ </reference>
+ <with
+ variable="debugContext">
+ <iterate
+ ifEmpty="false"
+ operator="and">
+ <test
+ property="org.eclipse.cdt.debug.ui.isGroupDebugContextsVisible">
+ </test>
+ </iterate>
+ </with>
+ </and>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.eclipse.cdt.debug.ui.command.ungroupDebugContexts"
+ label="%UngroupDebugContexts.name">
+ <visibleWhen
+ checkEnabled="false">
+ <and>
+ <reference
+ definitionId="org.eclipse.cdt.debug.ui.testDebugViewLayoutActionSetActive">
+ </reference>
+ <with
+ variable="debugContext">
+ <iterate
+ ifEmpty="false"
+ operator="and">
+ <test
+ property="org.eclipse.cdt.debug.ui.isUngroupDebugContextsVisible">
+ </test>
+ </iterate>
+ </with>
+ </and>
+ </visibleWhen>
+ </command>
+ </menuContribution>
</extension>
<!-- Cast to Type / Display as Array -->
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/GroupDebugContextsCommandHandler.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/GroupDebugContextsCommandHandler.java
new file mode 100644
index 0000000000..f9d640638b
--- /dev/null
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/GroupDebugContextsCommandHandler.java
@@ -0,0 +1,27 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Texas Instruments, Inc. 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:
+ * Dobrin Alexiev (Texas Instruments) - initial API and implementation (bug 336876)
+********************************************************************************/
+package org.eclipse.cdt.debug.internal.ui.commands;
+
+import org.eclipse.cdt.debug.core.model.IGroupDebugContextsHandler;
+import org.eclipse.debug.ui.actions.DebugCommandHandler;
+
+/**
+ * Command handler to trigger grouping of debug contexts operation.
+ *
+ * @since 7.1
+ */
+public class GroupDebugContextsCommandHandler extends DebugCommandHandler {
+
+ @Override
+ protected Class<?> getCommandType() {
+ return IGroupDebugContextsHandler.class;
+ }
+}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/UngroupDebugContextsCommandHandler.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/UngroupDebugContextsCommandHandler.java
new file mode 100644
index 0000000000..dd39c1b9ad
--- /dev/null
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/UngroupDebugContextsCommandHandler.java
@@ -0,0 +1,27 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Texas Instruments, Inc. 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:
+ * Dobrin Alexiev (Texas Instruments) - initial API and implementation (bug 336876)
+********************************************************************************/
+package org.eclipse.cdt.debug.internal.ui.commands;
+
+import org.eclipse.cdt.debug.core.model.IUngroupDebugContextsHandler;
+import org.eclipse.debug.ui.actions.DebugCommandHandler;
+
+/**
+ * Command handler to trigger ungrouping of debug contexts operation.
+ *
+ * @since 7.1
+ */
+public class UngroupDebugContextsCommandHandler extends DebugCommandHandler {
+
+ @Override
+ protected Class<?> getCommandType() {
+ return IUngroupDebugContextsHandler.class;
+ }
+}

Back to the top