changeCPButton = LinkFactory.createButtonSmall("command.changecp", cpConfigurationVc, this);
if (config.get(CONFIG_KEY_REPOSITORY_SOFTKEY) != null) {
// fetch repository entry to display the repository entry title of the
// chosen cp
RepositoryEntry re = getScormCPReference(config, false);
if (re == null) { // we cannot display the entries name, because the repository entry had been deleted
// between the time when it was chosen here, and now
this.showError(NLS_ERROR_CPREPOENTRYMISSING);
cpConfigurationVc.contextPut("showPreviewButton", Boolean.FALSE);
cpConfigurationVc.contextPut(VC_CHOSENCP, translate(NLS_NO_CP_CHOSEN));
} else {
cpConfigurationVc.contextPut("showPreviewButton", Boolean.TRUE);
previewLink = LinkFactory.createCustomLink("command.preview", "command.preview", re.getDisplayname(), Link.NONTRANSLATED, cpConfigurationVc, this);
previewLink.setCustomEnabledLinkCSS("b_preview");
previewLink.setTitle(getTranslator().translate("command.preview"));
}
} else {