throw new CoreException(new Status(IStatus.ERROR, RedmineCorePlugin.PLUGIN_ID, Messages.INVALID_SERVERURL));
}
detectedVersionString = null;
RedmineServerVersion detectedVersion = null;
try {
IClient client = ClientFactory.createClient(repository);
detectedVersion = client.checkClientConnection(monitor);
} catch (RedmineStatusException e) {
if(e.getCause() instanceof RedmineApiAuthenticationException) {
throw new CoreException(new Status(IStatus.ERROR, RedmineCorePlugin.PLUGIN_ID, Messages.INVALID_CREDENTIALS));
}
throw new CoreException(e.getStatus());
}
checkedUrl = repository.getRepositoryUrl();
validateVersion(requiredVersion, detectedVersion);
// validateEditorExtension(repository);
detectedVersionString = detectedVersion.toString();
String msg = Messages.SUCCESSFUL_CONNECTION_TEST_X_X;
msg = String.format(msg, detectedVersion.redmine.toString(), detectedVersion.plugin.toString());
this.setStatus(new Status(IStatus.OK, RedmineCorePlugin.PLUGIN_ID, msg));
}