transactionActionsPanel.setVisible(showActions);
if (showActions) {
final ActionListener actionListener = new ActionListener() {
public void actionPerformed(ActionEvent e) {
DatabaseTransactionManager transactionManager = DatabaseTransactionManager.getInstance(connectionHandler.getProject());
Object source = e.getSource();
if (source == commitButton) {
transactionManager.execute(connectionHandler, false, TransactionAction.COMMIT, additionalOperation);
} else if (source == rollbackButton) {
transactionManager.execute(connectionHandler, false, TransactionAction.ROLLBACK, additionalOperation);
}
}
};
commitButton.addActionListener(actionListener);