cmcExit.activate();
listenTo(cmcExit);
return;
} else if (cmd.equals(CMD_TOOLS_PREVIEW)) { // preview
previewController = IQManager.getInstance().createIQDisplayController(new QTIEditorResolver(qtiPackage),
qtiPackage.getQTIDocument().isSurvey() ? AssessmentInstance.QMD_ENTRY_TYPE_SURVEY : AssessmentInstance.QMD_ENTRY_TYPE_SELF,
new IQPreviewSecurityCallback(), ureq, getWindowControl());
if (previewController.isReady()) {
// in case previewController was unable to initialize, a message was
// set by displayController