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);
}
}
@Override
public void update(AnActionEvent e) {