Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piech2012-06-09 03:22:58 +0000
committerEugene Tarassov2012-06-12 00:05:48 +0000
commitd4fce15928897a3cb0c9757ea5abf50a93c49051 (patch)
tree0de839247ccb3985f9513dc3268b145836e77cc6 /plugins/org.eclipse.tcf.debug
parent10793bd1adb4c2e5f52df3d99515b153dce63bfb (diff)
downloadorg.eclipse.tcf-d4fce15928897a3cb0c9757ea5abf50a93c49051.tar.gz
org.eclipse.tcf-d4fce15928897a3cb0c9757ea5abf50a93c49051.tar.xz
org.eclipse.tcf-d4fce15928897a3cb0c9757ea5abf50a93c49051.zip
Bug 381993 - [breakpoints] Add a detail pane in breakpoints view to show breakpoints' scope setting
Completed implementaiton.
Diffstat (limited to 'plugins/org.eclipse.tcf.debug')
-rw-r--r--plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFLaunch.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFLaunch.java b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFLaunch.java
index 958c8fbac..31e4e3a8a 100644
--- a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFLaunch.java
+++ b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFLaunch.java
@@ -22,6 +22,7 @@ import java.util.List;
import java.util.ListIterator;
import java.util.Map;
import java.util.Set;
+import java.util.TreeSet;
import org.eclipse.core.resources.IStorage;
import org.eclipse.core.runtime.CoreException;
@@ -1229,6 +1230,27 @@ public class TCFLaunch extends Launch {
return cache;
}
+ public Set<String> getModelContexts(Set<String> contexts) {
+ if (contexts != null) {
+ ILaunchConfiguration launchConfig = getLaunchConfiguration();
+ if (launchConfig != null) {
+ Set<String> modelContexts = new TreeSet<String>();
+ String sessionId = launchConfig.getName();
+ for (String context : contexts) {
+ int slashPos = context.indexOf('/');
+ if (slashPos > 0 && context.length() > slashPos + 1) {
+ if ( sessionId.equals(context.substring(0, slashPos)) ) {
+ modelContexts.add(context.substring(slashPos + 1));
+ }
+ }
+ }
+ return modelContexts;
+ }
+ }
+ return null;
+ }
+
+
/**
* Activate TCF launch: open communication channel and perform all necessary launch steps.
* @param mode - on of launch mode constants defined in ILaunchManager.

Back to the top