Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2014-07-08 10:55:23 +0000
committerUwe Stieber2014-07-08 10:55:23 +0000
commite29b92ea344912e1c26865e950a2e90e133dd6cb (patch)
treeba809d370caf9328b99aebce0ccb267a2c7afbb4 /target_explorer/plugins/org.eclipse.tcf.te.runtime.stepper
parenta9a1e47ae6d7f003232450c82cf413c2e2b6deca (diff)
downloadorg.eclipse.tcf-e29b92ea344912e1c26865e950a2e90e133dd6cb.tar.gz
org.eclipse.tcf-e29b92ea344912e1c26865e950a2e90e133dd6cb.tar.xz
org.eclipse.tcf-e29b92ea344912e1c26865e950a2e90e133dd6cb.zip
Reworked: Target Explorer: add steps for channel manager rework
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.runtime.stepper')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.stepper/src/org/eclipse/tcf/te/runtime/stepper/StepperAttributeUtil.java13
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.stepper/src/org/eclipse/tcf/te/runtime/stepper/job/StepperJob.java1
2 files changed, 6 insertions, 8 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.stepper/src/org/eclipse/tcf/te/runtime/stepper/StepperAttributeUtil.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.stepper/src/org/eclipse/tcf/te/runtime/stepper/StepperAttributeUtil.java
index 798836236..0ef68d438 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.stepper/src/org/eclipse/tcf/te/runtime/stepper/StepperAttributeUtil.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.stepper/src/org/eclipse/tcf/te/runtime/stepper/StepperAttributeUtil.java
@@ -147,8 +147,7 @@ public class StepperAttributeUtil {
* @param fullQualifiedId The full qualified id for this step.
* @param data The data.
* @param value The new value.
- * @param share When <code>true</code>, the value is also stored within the parent full
- * qualified id to share the value with other steps within the same parent (group).
+ * @param share If <code>true</code>, the value is also stored without the full qualified id.
* @return <code>true</code> if the value was set.
*/
public final static boolean setProperty(String key, IFullQualifiedId fullQualifiedId, IPropertiesContainer data, Object value, boolean share) {
@@ -182,8 +181,7 @@ public class StepperAttributeUtil {
* @param fullQualifiedId The full qualified id for this step.
* @param data The data.
* @param value The new boolean value.
- * @param share When <code>true</code>, the value is also stored within the parent full
- * qualified id to share the value with other steps within the same parent (group).
+ * @param share If <code>true</code>, the value is also stored without the full qualified id.
* @return <code>true</code> if the value was set.
*/
public final static boolean setProperty(String key, IFullQualifiedId fullQualifiedId, IPropertiesContainer data, boolean value, boolean share) {
@@ -191,7 +189,7 @@ public class StepperAttributeUtil {
Assert.isNotNull(data);
if (share && fullQualifiedId != null) {
- data.setProperty(getFullQualifiedKey(key, fullQualifiedId.getParentId(), data), value);
+ data.setProperty(getFullQualifiedKey(key, null, data), value);
}
return data.setProperty(getFullQualifiedKey(key, fullQualifiedId, data), value);
}
@@ -217,8 +215,7 @@ public class StepperAttributeUtil {
* @param fullQualifiedId The full qualified id for this step.
* @param data The data.
* @param value The new int value.
- * @param share When <code>true</code>, the value is also stored within the parent full
- * qualified id to share the value with other steps within the same parent (group).
+ * @param share If <code>true</code>, the value is also stored without the full qualified id.
* @return <code>true</code> if the value was set.
*/
public final static boolean setProperty(String key, IFullQualifiedId fullQualifiedId, IPropertiesContainer data, int value, boolean share) {
@@ -226,7 +223,7 @@ public class StepperAttributeUtil {
Assert.isNotNull(data);
if (share && fullQualifiedId != null) {
- data.setProperty(getFullQualifiedKey(key, fullQualifiedId.getParentId(), data), value);
+ data.setProperty(getFullQualifiedKey(key, null, data), value);
}
return data.setProperty(getFullQualifiedKey(key, fullQualifiedId, data), value);
}
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.stepper/src/org/eclipse/tcf/te/runtime/stepper/job/StepperJob.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.stepper/src/org/eclipse/tcf/te/runtime/stepper/job/StepperJob.java
index f3df21e69..e6c3d16c9 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.stepper/src/org/eclipse/tcf/te/runtime/stepper/job/StepperJob.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.stepper/src/org/eclipse/tcf/te/runtime/stepper/job/StepperJob.java
@@ -167,6 +167,7 @@ public final class StepperJob extends Job {
setJobs(jobs, stepContext.getContextObject());
}
+ @SuppressWarnings("unchecked")
public static Map<String,List<Job>> getJobs(Object context) {
IPropertiesAccessService service = ServiceManager.getInstance().getService(context, IPropertiesAccessService.class);
Map<String,List<Job>> jobs = null;

Back to the top