diff options
author | eutarass | 2010-09-11 16:56:02 +0000 |
---|---|---|
committer | eutarass | 2010-09-11 16:56:02 +0000 |
commit | f8018e31af0d3d717c394770d257d14635309fba (patch) | |
tree | cf0672177c190128f32a213eadc72be553c1433d /plugins/org.eclipse.tm.tcf.core | |
parent | 41ab127907185b5d9756ccc80a9342c8c7f957ab (diff) | |
download | org.eclipse.tcf-f8018e31af0d3d717c394770d257d14635309fba.tar.gz org.eclipse.tcf-f8018e31af0d3d717c394770d257d14635309fba.tar.xz org.eclipse.tcf-f8018e31af0d3d717c394770d257d14635309fba.zip |
1. Added Run Control context property: "Name" - human readable context name
2. Fixed support of more then two levels of context hierarchy in Run Control and Memory services
Diffstat (limited to 'plugins/org.eclipse.tm.tcf.core')
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. |