@Override protected ValidationStatus validateLocally() { String userName = getCloudFoundryServer().getUsername(); String password = getCloudFoundryServer().getPassword(); String url = getCloudFoundryServer().getUrl(); String message = null; boolean valuesFilled = false; int validationEventType = ValidationEvents.VALIDATION; if (userName == null || userName.trim().length() == 0) { message = Messages.ERROR_NO_USERNAME_SPACES; } else if (password == null || password.trim().length() == 0) { message = Messages.ERROR_NO_PASSWORD_SPACES; } else if (url == null || url.trim().length() == 0) { message = Messages.ERROR_NO_URL_SPACES; } else { valuesFilled = true; message = Messages.CLONE_SERVER_WIZARD_OK_MESSAGE; } int statusType = valuesFilled ? IStatus.OK : IStatus.ERROR; IStatus status = CloudFoundryPlugin.getStatus(message, statusType); return new ValidationStatus(status, validationEventType); }