Search in sources :

Example 1 with DeleteRowAuditLogEntry

use of org.drools.workbench.models.guided.dtable.shared.auditlog.DeleteRowAuditLogEntry in project drools-wb by kiegroup.

the class GuidedDecisionTablePresenter method deleteRow.

private void deleteRow(final int rowIndex) {
    try {
        synchronizer.deleteRow(rowIndex);
        refreshView();
        // Log deletion of column
        model.getAuditLog().add(new DeleteRowAuditLogEntry(identity.getIdentifier(), rowIndex));
    } catch (VetoException e) {
        getModellerPresenter().getView().showGenericVetoMessage();
    }
}
Also used : VetoException(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.ModelSynchronizer.VetoException) DeleteRowAuditLogEntry(org.drools.workbench.models.guided.dtable.shared.auditlog.DeleteRowAuditLogEntry)

Aggregations

DeleteRowAuditLogEntry (org.drools.workbench.models.guided.dtable.shared.auditlog.DeleteRowAuditLogEntry)1 VetoException (org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.ModelSynchronizer.VetoException)1