Search in sources :

Example 1 with AddRelationColumnCommand

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)));
    });
}
Also used : AddRelationColumnCommand(org.kie.workbench.common.dmn.client.commands.expressions.types.relation.AddRelationColumnCommand) InformationItem(org.kie.workbench.common.dmn.api.definition.v1_1.InformationItem) Name(org.kie.workbench.common.dmn.api.property.dmn.Name) HasName(org.kie.workbench.common.dmn.api.definition.HasName)

Aggregations

HasName (org.kie.workbench.common.dmn.api.definition.HasName)1 InformationItem (org.kie.workbench.common.dmn.api.definition.v1_1.InformationItem)1 Name (org.kie.workbench.common.dmn.api.property.dmn.Name)1 AddRelationColumnCommand (org.kie.workbench.common.dmn.client.commands.expressions.types.relation.AddRelationColumnCommand)1