Search in sources :

Example 1 with MoveRowsCommand

use of org.kie.workbench.common.dmn.client.commands.expressions.types.invocation.MoveRowsCommand in project kie-wb-common by kiegroup.

the class InvocationGridData method moveRowsTo.

@Override
public void moveRowsTo(final int index, final List<GridRow> rows) {
    expression.ifPresent(invocation -> {
        final AbstractCanvasHandler handler = (AbstractCanvasHandler) sessionManager.getCurrentSession().getCanvasHandler();
        sessionCommandManager.execute(handler, new MoveRowsCommand(invocation, delegate, index, rows, canvasOperation));
    });
}
Also used : MoveRowsCommand(org.kie.workbench.common.dmn.client.commands.expressions.types.invocation.MoveRowsCommand) AbstractCanvasHandler(org.kie.workbench.common.stunner.core.client.canvas.AbstractCanvasHandler)

Aggregations

MoveRowsCommand (org.kie.workbench.common.dmn.client.commands.expressions.types.invocation.MoveRowsCommand)1 AbstractCanvasHandler (org.kie.workbench.common.stunner.core.client.canvas.AbstractCanvasHandler)1