use of org.whole.lang.commons.model.RootFragment in project whole by wholeplatform.
the class ClipboardUtils method createEditPart.
public static IEntityPart createEditPart(EditPartFactory factory, IEntity entity) {
IGEFEditorKit commonsEditorKit = (IGEFEditorKit) ReflectionFactory.getEditorKit("org.whole.lang.commons.ui.CommonsEditorKit");
RootFragment rootFragment = CommonsEntityFactory.instance.createRootFragment(entity.wGetAdapter(CommonsEntityDescriptorEnum.Any));
EditPart rootFragmentPart = commonsEditorKit.getPartFactory().createEditPart(null, rootFragment);
IEntityPart entityPart = (IEntityPart) factory.createEditPart(rootFragmentPart, entity);
EntityUtils.remove(entity);
return entityPart;
}
Aggregations