Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraleherbau2011-05-09 04:02:04 -0400
committeraleherbau2011-05-09 04:02:04 -0400
commit9d53a97a21463e151701d6f41d0b5779021ec956 (patch)
tree109b393ac666356025c6c8de93f4dcfed8e3669e
parentee4f5633cf3dc3348469bb3150289888de07daa2 (diff)
downloadorg.eclipse.tcf-9d53a97a21463e151701d6f41d0b5779021ec956.tar.gz
org.eclipse.tcf-9d53a97a21463e151701d6f41d0b5779021ec956.tar.xz
org.eclipse.tcf-9d53a97a21463e151701d6f41d0b5779021ec956.zip
Add launch config name to scope root nodes
-rw-r--r--plugins/org.eclipse.tm.tcf.cdt.ui/src/org/eclipse/tm/internal/tcf/cdt/ui/breakpoints/TCFThreadFilterEditor.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/plugins/org.eclipse.tm.tcf.cdt.ui/src/org/eclipse/tm/internal/tcf/cdt/ui/breakpoints/TCFThreadFilterEditor.java b/plugins/org.eclipse.tm.tcf.cdt.ui/src/org/eclipse/tm/internal/tcf/cdt/ui/breakpoints/TCFThreadFilterEditor.java
index 9c7659822..f6906b766 100644
--- a/plugins/org.eclipse.tm.tcf.cdt.ui/src/org/eclipse/tm/internal/tcf/cdt/ui/breakpoints/TCFThreadFilterEditor.java
+++ b/plugins/org.eclipse.tm.tcf.cdt.ui/src/org/eclipse/tm/internal/tcf/cdt/ui/breakpoints/TCFThreadFilterEditor.java
@@ -52,7 +52,14 @@ public class TCFThreadFilterEditor {
private final boolean fIsContainer;
Context(IRunControl.RunControlContext ctx) {
- fName = ctx.getName() != null ? ctx.getName() : ctx.getID();
+ this(ctx, null);
+ }
+ Context(IRunControl.RunControlContext ctx, String suffix) {
+ String name = ctx.getName() != null ? ctx.getName() : ctx.getID();
+ if (suffix != null) {
+ name += " - " + suffix;
+ }
+ fName = name;
fId = ctx.getID();
fParentId = ctx.getParentID();
fIsContainer = ctx.isContainer();
@@ -60,7 +67,6 @@ public class TCFThreadFilterEditor {
}
public class CheckHandler implements ICheckStateListener {
-
public void checkStateChanged(CheckStateChangedEvent event) {
Object element = event.getElement();
if (element instanceof Context) {
@@ -328,6 +334,7 @@ public class TCFThreadFilterEditor {
if (result != null) {
return result;
}
+ final String launchCfgName = launch.getLaunchConfiguration().getName();
result = new TCFTask<Context[]>() {
public void run() {
List<Context> containers = new ArrayList<Context>();
@@ -341,7 +348,7 @@ public class TCFThreadFilterEditor {
TCFDataCache<IRunControl.RunControlContext> runCtxCache = exeCtx.getRunContext();
if (!runCtxCache.validate(this)) return;
IRunControl.RunControlContext runCtx = runCtxCache.getData();
- containers.add(new Context(runCtx));
+ containers.add(new Context(runCtx, launchCfgName));
}
}
done((Context[]) containers.toArray(new Context[containers.size()]));

Back to the top