}else{
//editor could not be created
//message already pushed as Error Box
}
} else throw new OLATSecurityException("wanted to activate editor, but no according right");
} else if (cmd.equals("groupmngt")) {
if (hasCourseRight(CourseRights.RIGHT_GROUPMANAGEMENT) || isCourseAdmin) {
currentToolCtr = new CourseGroupManagementMainController(ureq, getWindowControl(), course, BusinessGroup.TYPE_LEARNINGROUP);
listenTo(currentToolCtr);
all.setContent(currentToolCtr.getInitialComponent());
} else throw new OLATSecurityException("clicked groupmanagement, but no according right");
} else if (cmd.equals("rightmngt")) {
if (isCourseAdmin) {
currentToolCtr = new CourseGroupManagementMainController(ureq, getWindowControl(), course, BusinessGroup.TYPE_RIGHTGROUP);
listenTo(currentToolCtr);
all.setContent(currentToolCtr.getInitialComponent());
} else throw new OLATSecurityException("clicked rightmanagement, but no according right");
} else if (cmd.equals("statistic")) {
if (hasCourseRight(CourseRights.RIGHT_STATISTICS) || isCourseAdmin) {
currentToolCtr = new StatisticMainController(ureq, getWindowControl(), course);
listenTo(currentToolCtr);
all.setContent(currentToolCtr.getInitialComponent());
} else throw new OLATSecurityException("clicked statistic, but no according right");
}else if (cmd.equals("archiver")) {
if (hasCourseRight(CourseRights.RIGHT_ARCHIVING) || isCourseAdmin) {
currentToolCtr = new ArchiverMainController(ureq, getWindowControl(), course, new IArchiverCallback() {
public boolean mayArchiveQtiResults() {
return true;
}
public boolean mayArchiveLogfiles() {
return true;
}
public boolean mayArchiveCoursestructure() {
return true;
}
public boolean mayArchiveProperties() {
return true;
}
public boolean mayArchiveHandedInTasks() {
return true;
}
public boolean mayArchiveForums() {
return true;
}
public boolean mayArchiveDialogs() {
return true;
}
public boolean mayBringTogether() {
return true;
}
public boolean mayArchiveWikis() {
return true;
}
public boolean mayArchiveProjectBroker() {
return true;
}
});
listenTo(currentToolCtr);
all.setContent(currentToolCtr.getInitialComponent());
} else throw new OLATSecurityException("clicked archiver, but no according right");
} else if (cmd.equals("assessment")) {
launchAssessmentTool(ureq, null);
} else if (cmd.equals("efficiencystatement")) {