return null;
}
private TreeItem getAsTree() throws Exception {
Set<Firm> firms = getFirmsTree();
TreeItem root = new TreeItem("Root");
for (Firm firm : firms) {
TreeItem firmItem = new TreeItem(firm.name);
root.addChild(firmItem);
for (Department department : firm.departments) {
TreeItem departmentItem = new TreeItem(department.shortName);
firmItem.addChild(departmentItem);
for (Actor actor : department.actors) {
TreeItem actorItem = new TreeItem(actor.name);
actorItem.setAllowSelection(true);
actorItem.setTag(String.valueOf(actor.id));
actorItem.setColor(actor.getForeground());
departmentItem.addChild(actorItem);
}
}
}
return root;