use of org.kie.workbench.common.dmn.client.commands.expressions.types.relation.AddRelationColumnCommand in project kie-wb-common by kiegroup.
the class RelationGrid method addColumn.
void addColumn(final int index) {
expression.ifPresent(relation -> {
final InformationItem informationItem = new InformationItem();
informationItem.setName(new Name("Column"));
final RelationColumn relationColumn = makeRelationColumn(informationItem);
sessionCommandManager.execute((AbstractCanvasHandler) sessionManager.getCurrentSession().getCanvasHandler(), new AddRelationColumnCommand(relation, informationItem, model, relationColumn, index, uiModelMapper, () -> synchroniseViewWhenExpressionEditorChanged(this)));
});
}
Aggregations