break;
}
}
if (!found) {
ContentField cf = new ContentField();
cf.setTab(ui.getTab());
cf.setDisplayName(of.getDisplayName());
cf.setInternalName(of.getInternalName());
sct.getFields().add(cf);
}
}
}
for (Iterator<ContentField> i = sct.getFields().iterator(); i.hasNext();) {
ContentField cf = i.next();
boolean found = false;
for (ObjectField of : selected.getFields()) {
if (of.getInternalName().equals(cf.getInternalName())) {
found = true;
break;
}
}