use of org.whole.lang.ui.notations.styledtree.figures.SimpleTableNodeWithBranchesFigure in project whole by wholeplatform.
the class AdaptiveEntityPart method createFigure.
protected IFigure createFigure() {
IEntityStyling entityStyling = getEntityStyling();
INotationStyling notationStyling = entityStyling.getNotationStyling();
switch(entityStyling.getKind()) {
case DATA:
switch(notationStyling.getEmbeddingStyle(stylingFactory, (IEntityPart) getParent(), getModelEntity())) {
case TABLE_CELL:
// TODO
case NONE:
default:
return new DataNodeFigure(entityStyling);
}
case SIMPLE:
return new SimpleTableNodeWithBranchesFigure(true, entityStyling);
case COMPOSITE:
default:
if (entityStyling.getLayoutStyle().equals(LayoutStyle.COMPOSITE_TABLE))
return new CompositeTableFigure(entityStyling);
else
return new NodeWithCompositeBranchFigure(entityStyling);
}
}
Aggregations