/**
* Shows Gerrit login settings if credentials are wrong or empty and return the list of all projects
*/
public List<ProjectInfo> getAvailableProjects(final Project project) {
while (!checkCredentials(project)) {
final LoginDialog dialog = new LoginDialog(project, gerritSettings, this, log);
dialog.show();
if (!dialog.isOK()) {
return null;
}
}
// Otherwise our credentials are valid and they are successfully stored in settings
return accessToGerritWithModalProgress(project, new ThrowableComputable<List<ProjectInfo>, Exception>() {