ListMultimap<ScheduleId, Operation> scheduleBag) {
for (Enumeration<KongaTreeNode> en = scheduleRoot.breadthFirstEnumeration(); en.hasMoreElements(); ) {
KongaTreeNode node = en.nextElement();
Object nodeObject = node.getUserObject();
if (nodeObject instanceof Schedule) {
IntegrationEntityTreeNode scheduleNode = (IntegrationEntityTreeNode) node;
Schedule schedule = (Schedule) nodeObject;
List<? extends Operation> ops = scheduleBag.get(schedule.getID());
Collections.sort(ops, BY_NAME);
for (Operation op : ops) {
scheduleNode.setAllowsChildren(true);
IntegrationEntityTreeNode opNode = op.getExtensionObject(IntegrationEntityTreeNode.class);
scheduleNode.addChild(opNode);
}
}
}
}