Search in sources :

Example 1 with EntityStyling

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()));
}
Also used : LayoutStyle(org.whole.lang.ui.notations.styledtree.styling.EntityStyling.LayoutStyle) EntityStyling(org.whole.lang.ui.notations.styledtree.styling.EntityStyling) IEntityStyling(org.whole.lang.ui.notations.styledtree.styling.IEntityStyling) EntityKinds(org.whole.lang.reflect.EntityKinds)

Aggregations

EntityKinds (org.whole.lang.reflect.EntityKinds)1 EntityStyling (org.whole.lang.ui.notations.styledtree.styling.EntityStyling)1 LayoutStyle (org.whole.lang.ui.notations.styledtree.styling.EntityStyling.LayoutStyle)1 IEntityStyling (org.whole.lang.ui.notations.styledtree.styling.IEntityStyling)1