use of org.kie.workbench.common.dmn.client.commands.expressions.types.context.MoveRowsCommand in project kie-wb-common by kiegroup.
the class ContextGridData method moveRowsTo.
@Override
public void moveRowsTo(final int index, final List<GridRow> rows) {
expression.ifPresent(context -> {
final AbstractCanvasHandler handler = (AbstractCanvasHandler) sessionManager.getCurrentSession().getCanvasHandler();
final MoveRowsCommand command = new MoveRowsCommand(context, delegate, index, rows, canvasOperation);
if (isAllowed(sessionCommandManager.allow(handler, command))) {
sessionCommandManager.execute(handler, command);
}
});
}
Aggregations