Search in sources :

Example 1 with AddRuleAnnotationClauseCommand

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)));
    });
}
Also used : RuleAnnotationClause(org.kie.workbench.common.dmn.api.definition.model.RuleAnnotationClause) AddRuleAnnotationClauseCommand(org.kie.workbench.common.dmn.client.commands.expressions.types.dtable.AddRuleAnnotationClauseCommand)

Aggregations

RuleAnnotationClause (org.kie.workbench.common.dmn.api.definition.model.RuleAnnotationClause)1 AddRuleAnnotationClauseCommand (org.kie.workbench.common.dmn.client.commands.expressions.types.dtable.AddRuleAnnotationClauseCommand)1