Search in sources :

Example 1 with InsertColumnAuditLogEntry

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

the class GuidedDecisionTablePresenter method doAppendColumn.

private void doAppendColumn(final BaseColumn column, final VetoableColumnCommand append, final Command callback) {
    if (isReadOnly()) {
        return;
    }
    try {
        append.execute();
        refreshView();
        // Log addition of column
        model.getAuditLog().add(new InsertColumnAuditLogEntry(identity.getIdentifier(), column));
        callback.execute();
    } catch (VetoException e) {
        getModellerPresenter().getView().showGenericVetoMessage();
    }
}
Also used : VetoException(org.drools.workbench.screens.guided.dtable.client.widget.table.model.synchronizers.ModelSynchronizer.VetoException) InsertColumnAuditLogEntry(org.drools.workbench.models.guided.dtable.shared.auditlog.InsertColumnAuditLogEntry)

Aggregations

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