public EditPart createEditPart(EditPart context, Object model) {
// use generic EditPart for placeholders
if (model instanceof UIObjectInfo) {
UIObjectInfo object = (UIObjectInfo) model;
if (object.isPlaceholder()) {
return new UIObjectEditPart(object);
}
}
// use factories
for (IEditPartFactory factory : FACTORIES) {
EditPart editPart = factory.createEditPart(null, model);