try {
ConnectionSettings settings = new ConnectionSettings();
settings.setLogin(login.getText());
settings.setPassword(password.getText());
settings.setTracUrl(tracUrl.getText());
gateway.testConnection(settings);
Messages.showMessageDialog(bundle.getString("configuration.connection.dialogs.connection_success"), bundle.getString("dialogs.success"), Messages.getInformationIcon());
} catch (ConnectionFailedException exception) {
Messages.showMessageDialog(bundle.getString("configuration.connection.dialogs.connection_failed"), bundle.getString("dialogs.error"), Messages.getErrorIcon());
} catch (MalformedURLException e1) {
Messages.showMessageDialog(bundle.getString("configuration.connection.dialogs.malformed_url"), bundle.getString("dialogs.error"), Messages.getErrorIcon());