* @param parent
* the parent Composite
*/
protected void addFTEntries(List<FTEntry> entries, Composite parent) {
for (FTEntry entry : entries) {
ListPart part = null;
int level = ancestorsCount(entry);
if (entry instanceof FactorCategory) {
part = addCategoryPart((FactorCategory) entry, parent, level);
} else if (entry instanceof Factor) {
part = addFactorPart((Factor) entry, parent, level);
} else {
addErrorMessage("Unknow ModelElement: "
+ entry.eClass().toString() + "\n");
}
// add sub-entries
addFTEntries(entry.getChildren(), part.getChildrenComposite());
}
}