*/
void actionSelectErrorType() {
Object selection = listAllErrors.getSelectedItem();
modelPages.clear();
if (selection instanceof CheckError) {
CheckError error = (CheckError) selection;
// Button status
buttonReloadError.setEnabled(true);
buttonErrorDetail.setEnabled(true);
buttonErrorList.setEnabled(true);
buttonWhiteList.setEnabled(true);
displayErrorDescription();
// Pages
int nbPages = error.getPageCount();
for (int numPage = 0; numPage < nbPages; numPage++) {
Page page = error.getPage(numPage);
CheckErrorPage errorPage = new CheckErrorPage(page, error.getAlgorithm());
if ((errorPage.isInWhiteList()) && (page.getPageId() != null)) {
markPageAsFixed(error.getAlgorithm().getErrorNumberString(), page);
} else {
modelPages.addElement(errorPage);
}
}
setPageLoaded(false);
actionSelectPages();
updateComponentState();
} else {
buttonReloadError.setEnabled(false);
buttonErrorDetail.setEnabled(false);
buttonErrorList.setEnabled(false);
buttonWhiteList.setEnabled(false);
displayErrorDescription();
if (selection instanceof String) {
List<String> listTmp = new ArrayList<String>();
for (CheckError error : errors) {
int nbPages = error.getPageCount();
for (int numPage = 0; numPage < nbPages; numPage++) {
Page page = error.getPage(numPage);
listTmp.add(page.getTitle());
}
}
Collections.sort(listTmp);
List<String> listErrorPages = new ArrayList<String>();