Search in sources :

Example 1 with ClearExpressionTypeCommand

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

the class FunctionGrid method clearExpressionType.

void clearExpressionType() {
    expression.ifPresent(function -> {
        final GridCellTuple gc = new GridCellTuple(0, 0, this);
        sessionCommandManager.execute((AbstractCanvasHandler) sessionManager.getCurrentSession().getCanvasHandler(), new ClearExpressionTypeCommand(gc, function, uiModelMapper, () -> synchroniseViewWhenExpressionEditorChanged(this)));
    });
}
Also used : GridCellTuple(org.kie.workbench.common.dmn.client.widgets.grid.model.GridCellTuple) ClearExpressionTypeCommand(org.kie.workbench.common.dmn.client.commands.expressions.types.function.ClearExpressionTypeCommand)

Aggregations

ClearExpressionTypeCommand (org.kie.workbench.common.dmn.client.commands.expressions.types.function.ClearExpressionTypeCommand)1 GridCellTuple (org.kie.workbench.common.dmn.client.widgets.grid.model.GridCellTuple)1