}
if( null == reviewboardClient ){
reviewboardClient = rbClientRepository.getClient( false, serverUrl,
txtUserId.getText().trim(), txtPassword.getText().trim(), CHARACTER_ENCODING );
}
IReviewboardService reviewboardService = new ReviewboardServiceImpl( reviewboardClient );
//验证用户名和密码是否正确
boolean isSuccess = reviewboardService.validCredentials( txtUserId.getText().trim(), txtPassword.getText().trim(), null );
if( !isSuccess ){
MessageDialog.openError( this.parent.getShell(),
RbCoreMessages.getString("ERROR_LABLE"),
RbCoreMessages.getString("ERROR_USERNAMEPASSWORD_1"));
return false;