if(BGContextManagerImpl.getInstance().getGroupsOfBGContext(bgContext).size()==0) {
getWindowControl().setError(translate("tools.title.listmembers.warning.noGroups"));
return;
}
if (memberListWizardController != null) memberListWizardController.dispose();
this.memberListWizardController = new MemberListWizardController(ureq, getWindowControl(), bgContext, MemberListWizardController.GROUPS_MEMBERS);
} else if(CMD_LIST_MEMBERS_WITH_AREAS.equals(cmd)) {
if(BGAreaManagerImpl.getInstance().findBGAreasOfBGContext(bgContext).size()==0) {
getWindowControl().setError(translate("tools.title.listmembers.warning.noAreas"));
return;
}
if (memberListWizardController != null) memberListWizardController.dispose();
this.memberListWizardController = new MemberListWizardController(ureq, getWindowControl(), bgContext, MemberListWizardController.AREAS_MEMBERS);
}
if(memberListWizardController!=null) {
this.memberListWizardController.addControllerListener(this);
if (closeableModalController != null) closeableModalController.dispose();
closeableModalController = new CloseableModalController(getWindowControl(), translate("close"), memberListWizardController.getInitialComponent());