ConnectionBundle connectionBundle = databaseSettings.getConnectionBundle();
if (source == testButton || source == infoButton) {
temporaryConfig = new GenericConnectionDatabaseSettings(connectionBundle);
applyChanges(temporaryConfig);
ConnectionManager connectionManager = ConnectionManager.getInstance(connectionBundle.getProject());
if (source == testButton) connectionManager.testConfigConnection(temporaryConfig, true);
if (source == infoButton) connectionManager.showConnectionInfo(temporaryConfig, null);
}
else if (source == osAuthenticationCheckBox) {
userTextField.setEnabled(!osAuthenticationCheckBox.isSelected());
passwordField.setEnabled(!osAuthenticationCheckBox.isSelected());
getConfiguration().setModified(true);