table.removeAll();
if (_list != null) {
for (Iterator it = _list.iterator(); it.hasNext();) {
Element e = (Element) it.next();
TableItem item = new TableItem(table, SWT.NONE);
if(Utils.getAttributeValue("single_start", e).length() > 0)
item.setText(0, "");
else
item.setText(0, Utils.isAttributeValue("let_run", e) ? "Yes" : "No");
item.setText(1, Utils.getAttributeValue("begin", e));
item.setText(2, Utils.getAttributeValue("end", e));
item.setText(3, Utils.getAttributeValue("repeat", e));
item.setText(4, Utils.getAttributeValue("single_start", e));
item.setText(5, Utils.getAttributeValue("absolute_repeat", e));
item.setData(e);
String whenHoliday = Utils.getAttributeValue("when_holiday", e).length() == 0 ? "suppress execution" : Utils.getAttributeValue("when_holiday", e);
item.setText(6, whenHoliday);
}
}
ArrayList remList = new ArrayList();
for(int i =0; i < _listOfAt.size(); i++) {
Element at = (Element)_listOfAt.get(i);
String sAT = Utils.getAttributeValue("at", at);
if(sAT != null && sAT.length()> 0) {
String date = sAT.substring(0, 10);
String time = sAT.substring((sAT.indexOf(" ") > -1 ? sAT.indexOf(" ") + 1 : sAT.length()));
if(time.length()==0) {
//at ohne Zeitangabe werden gel�scht
remList.add(at);
} else {
if(date.equalsIgnoreCase(Utils.getAttributeValue("date", _parent)) ||
Utils.getAttributeValue("at", _parent).startsWith(date)){
TableItem item = new TableItem(table, SWT.NONE);
item.setText(0, "No");
item.setText(1, "");
item.setText(2, "");
item.setText(3, "");
item.setText(4, time);
item.setData(at);
}
}
}
}