public TransactionCommitEditorAction() {
super("Commit", "Commit changes", Icons.CONNECTION_COMMIT);
}
public void actionPerformed(AnActionEvent e) {
Project project = ActionUtil.getProject(e);
VirtualFile virtualFile = e.getData(PlatformDataKeys.VIRTUAL_FILE);
if (project != null && virtualFile != null) {
DatabaseTransactionManager transactionManager = DatabaseTransactionManager.getInstance(project);
ConnectionHandler activeConnection = getConnectionHandler(project, virtualFile);
transactionManager.commit(activeConnection, true, false);