Examples of CheckError


Examples of org.wikipediacleaner.api.check.CheckError

    if ((errors == null) || (errors.isEmpty())) {
      return;
    }
    Iterator<CheckError> itError = errors.iterator();
    while (itError.hasNext()) {
      CheckError error = itError.next();
      if (error.getErrorNumber() == errorNumber) {
        error.remove(page);
      }
    }
    requestUpdate();
  }
View Full Code Here

Examples of org.wikipediacleaner.api.check.CheckError

        null,
        ConfigurationValueBoolean.CHECK_SHOW_0_ERRORS);
    if (!showAllErrors) {
      Iterator<CheckError> itError = errors.iterator();
      while (itError.hasNext()) {
        CheckError error = itError.next();
        if (error.getPageCount() == 0) {
          itError.remove();
          modelAllErrors.removeElement(error);
        }
      }
    }
View Full Code Here

Examples of org.wikipediacleaner.api.check.CheckError

      List<CheckError> errorsToBeRemoved = new ArrayList<CheckError>();
      for (CheckErrorAlgorithm algoFixed : errorsFixed) {
        for (int posError = 0; posError < window.modelAllErrors.getSize(); posError++) {
          Object element = window.modelAllErrors.getElementAt(posError);
          if (element instanceof CheckError) {
            final CheckError tmpError = (CheckError) element;
            if (tmpError.getAlgorithm().getErrorNumberString().equals(algoFixed.getErrorNumberString())) {
              tmpError.remove(page);
              if (tmpError.getPageCount() == 0) {
                errorsToBeRemoved.add(tmpError);
              }
            }
          }
        }
View Full Code Here

Examples of org.wikipediacleaner.api.check.CheckError

            GT._("Checking for errors n°{0}", Integer.toString(algorithm.getErrorNumber())) +
            " - " + algorithm.getShortDescriptionReplaced());
        errors.clear();
        checkWiki.retrievePages(algorithm, max, getWikipedia(), errors);
        while (!errors.isEmpty()) {
          CheckError error = errors.remove(0);
          int maxErrors = error.getPageCount();
          for (int numPage = 0;
              (error.getPageCount() > 0) && shouldContinue();
              numPage++) {
            try {
              Page page = error.getPage(0);
              error.remove(page);
              analyzePage(
                  page, algorithm,
                  algorithm.getErrorNumberString() + " - " + (numPage + 1) + "/" + maxErrors);
            } catch (APIException e) {
              //
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.