// shown in the web UI).
//
if (groupDetail.group.getType() == AccountGroup.Type.INTERNAL) {
Gerrit.display(toGroup(groupDetail.group.getId(),
AccountGroupScreen.MEMBERS),
new AccountGroupMembersScreen(groupDetail, token));
} else {
Gerrit.display(toGroup(groupDetail.group.getId(),
AccountGroupScreen.INFO),
new AccountGroupInfoScreen(groupDetail, token));
}
} else if (AccountGroupScreen.INFO.equals(panel)) {
Gerrit.display(token,
new AccountGroupInfoScreen(groupDetail, token));
} else if (AccountGroupScreen.MEMBERS.equals(panel)) {
Gerrit.display(token,
new AccountGroupMembersScreen(groupDetail, token));
} else {
Gerrit.display(token,new NotFoundScreen());
}
}
});