use of org.whole.lang.ui.notations.styledtree.styling.EntityStyling in project whole by wholeplatform.
the class StyledTreePartFactory method createEntityStyling.
public static IEntityStyling createEntityStyling(IEntityPart contextPart, EntityDescriptor<?> ed) {
EntityKinds kind = ed.getEntityKind();
LayoutStyle layoutStyle = getLayoutStyle(ed);
return new EntityStyling(ed.getURI(), kind, layoutStyle, getFeaturesStyling((kind.isComposite() && layoutStyle.equals(LayoutStyle.COMPOSITE_TABLE) ? ed.getEntityDescriptor(0) : ed).getEntityFeatureDescriptors()));
}
Aggregations