}
public void fillCommands(Table table) {
boolean created;
TableItem item = null;
table.removeAll();
List c = _command.getChildren();
Iterator it2 = c.iterator();
while (it2.hasNext()) {
Element e2 = (Element) it2.next();
created = false;
//if (e2.getName().equals("start_job") || e2.getName().equals("add_order")) {
if (e2.getName().equals("start_job") || e2.getName().equals("add_order") || e2.getName().equals("order")) {
if (!created) { // Nur die commands add_order und start_job
// anzeigen
item = new TableItem(table, SWT.NONE);
item.setText(1, "");
created = true;
}
item.setText(0, e2.getName());
item.setText(3, Utils.getAttributeValue("at", e2));
if (e2.getName().equals("start_job"))
item.setText(1, Utils.getAttributeValue("job", e2));
if (e2.getName().equals("add_order") || e2.getName().equals("order")) {
item.setText(1, Utils.getAttributeValue("id", e2));
item.setText(2, Utils.getAttributeValue("job_chain", e2));
}
}
}
}