use of org.kie.workbench.common.dmn.client.commands.expressions.types.dtable.AddRuleAnnotationClauseCommand in project kie-wb-common by kiegroup.
the class DecisionTableGrid method addRuleAnnotationClause.
void addRuleAnnotationClause(final int index) {
getExpression().get().ifPresent(dtable -> {
final RuleAnnotationClause clause = new RuleAnnotationClause();
sessionCommandManager.execute((AbstractCanvasHandler) sessionManager.getCurrentSession().getCanvasHandler(), new AddRuleAnnotationClauseCommand(dtable, clause, model, () -> makeRuleAnnotationClauseColumn(index, clause), index, uiModelMapper, () -> resize(BaseExpressionGrid.RESIZE_EXISTING), () -> resize(BaseExpressionGrid.RESIZE_EXISTING_MINIMUM)));
});
}
Aggregations