use of org.kie.workbench.common.dmn.client.commands.expressions.types.list.AddListRowCommand in project kie-wb-common by kiegroup.
the class ListGridTest method addListRow.
private void addListRow(final int index) {
grid.addRow(index);
verify(sessionCommandManager).execute(eq(canvasHandler), addListRowCommandCaptor.capture());
final AddListRowCommand addContextEntryCommand = addListRowCommandCaptor.getValue();
addContextEntryCommand.execute(canvasHandler);
}
use of org.kie.workbench.common.dmn.client.commands.expressions.types.list.AddListRowCommand in project kie-wb-common by kiegroup.
the class ListGrid method addRow.
void addRow(final int index) {
getExpression().get().ifPresent(list -> {
final GridRow listRow = new ExpressionEditorGridRow();
final HasExpression hasExpression = HasExpression.wrap(list, new LiteralExpression());
sessionCommandManager.execute((AbstractCanvasHandler) sessionManager.getCurrentSession().getCanvasHandler(), new AddListRowCommand(list, hasExpression, model, listRow, index, uiModelMapper, () -> resize(BaseExpressionGrid.RESIZE_EXISTING)));
});
}
Aggregations