Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.tm.tcf.core')
-rw-r--r--plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/internal/tcf/services/remote/ProcessesProxy.java2
-rw-r--r--plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/internal/tcf/services/remote/RunControlProxy.java4
-rw-r--r--plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/tcf/services/IRunControl.java9
3 files changed, 14 insertions, 1 deletions
diff --git a/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/internal/tcf/services/remote/ProcessesProxy.java b/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/internal/tcf/services/remote/ProcessesProxy.java
index 45a90c36c..4eff1dcfb 100644
--- a/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/internal/tcf/services/remote/ProcessesProxy.java
+++ b/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/internal/tcf/services/remote/ProcessesProxy.java
@@ -206,7 +206,7 @@ public class ProcessesProxy implements IProcesses {
if (error == null) {
assert args.length == 2;
error = toError(args[0]);
- if (args[1] != null) ctx = new ProcessContext((Map<String, Object>)args[1]);
+ if (args[1] != null) ctx = new ProcessContext((Map<String,Object>)args[1]);
}
done.doneStart(token, error, ctx);
}
diff --git a/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/internal/tcf/services/remote/RunControlProxy.java b/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/internal/tcf/services/remote/RunControlProxy.java
index dc92ea236..866b0b91b 100644
--- a/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/internal/tcf/services/remote/RunControlProxy.java
+++ b/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/internal/tcf/services/remote/RunControlProxy.java
@@ -56,6 +56,10 @@ public class RunControlProxy implements IRunControl {
return (String)props.get(PROP_CREATOR_ID);
}
+ public String getName() {
+ return (String)props.get(PROP_NAME);
+ }
+
public boolean isContainer() {
Boolean b = (Boolean)props.get(PROP_IS_CONTAINER);
return b != null && b.booleanValue();
diff --git a/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/tcf/services/IRunControl.java b/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/tcf/services/IRunControl.java
index 2467ada3b..da5aa0b73 100644
--- a/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/tcf/services/IRunControl.java
+++ b/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/tcf/services/IRunControl.java
@@ -36,6 +36,9 @@ public interface IRunControl extends IService {
/** ID of a context that created this context */
PROP_CREATOR_ID = "CreatorID",
+ /** Human readable context name */
+ PROP_NAME = "Name",
+
/** true if the context is a container. Container can propagate run control commands to his children */
PROP_IS_CONTAINER = "IsContainer",
@@ -274,6 +277,12 @@ public interface IRunControl extends IService {
String getCreatorID();
/**
+ * Retrieve human readable context name.
+ * Same as getProperties().get(“Name”)
+ */
+ String getName();
+
+ /**
* Utility method to read context property PROP_IS_CONTAINER.
* Executing resume or suspend command on a container causes all its children to resume or suspend.
* @return value of PROP_IS_CONTAINER.

Back to the top