protected void handleTestConnection() {
if (validate().size() == 0) {
try {
computeResponse();
_server.connectToServer();
updateStatus(new Status(Status.INFO, WGADesignerPlugin.PLUGIN_ID, "Server is reachable"));
} catch (Exception e) {
String message = null;
if (e.getMessage() != null) {
message = "Connection to server failed: '" + e.getMessage() + "'.";
} else {
message = "Connection to server failed. See log for details.";
}
updateStatus(new Status(Status.WARNING, WGADesignerPlugin.PLUGIN_ID, message));
WGADesignerPlugin.getDefault().logWarning("Unable to connect to server '" + _server.getUrl().toString() + "'.", e);
}
}
}