summaryrefslogtreecommitdiff
path: root/source/com/c2kernel/gui/tabs/execution
diff options
context:
space:
mode:
authorabranson <andrew.branson@cern.ch>2011-08-01 13:57:20 +0200
committerabranson <andrew.branson@cern.ch>2011-08-01 13:57:20 +0200
commit29bbf451a22916d39017ec1a3f53f4e0f0e65ee0 (patch)
treeb6e5d3a4c79e6afb4369c70a4d178156cbf43eeb /source/com/c2kernel/gui/tabs/execution
parent5b0919b3601340e7f71eee2b4cda8bf0a98090ee (diff)
Java7 compatibility and some code refresh
Diffstat (limited to 'source/com/c2kernel/gui/tabs/execution')
-rw-r--r--[-rwxr-xr-x]source/com/c2kernel/gui/tabs/execution/ActivityItem.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/com/c2kernel/gui/tabs/execution/ActivityItem.java b/source/com/c2kernel/gui/tabs/execution/ActivityItem.java
index 1a73dc2..051f1dc 100755..100644
--- a/source/com/c2kernel/gui/tabs/execution/ActivityItem.java
+++ b/source/com/c2kernel/gui/tabs/execution/ActivityItem.java
@@ -8,7 +8,13 @@ public class ActivityItem {
public String stepPath;
public int state;
public String name;
- ArrayList jobs = new ArrayList();
+ ArrayList<Job> jobs = new ArrayList<>();
+
+ public ActivityItem() {
+ stepPath = "";
+ state = -1;
+ name = "--";
+ }
public ActivityItem(Job thisJob) {
stepPath = thisJob.getStepPath();
@@ -30,7 +36,7 @@ public class ActivityItem {
}
public String toString() {
- return name+" ("+States.getStateName(state)+")";
+ return name+(state>-1?" ("+States.getStateName(state)+")":"");
}
public boolean equals(Object other) {