Examples of AutomaticFixingWorker


Examples of org.wikipediacleaner.gui.swing.worker.AutomaticFixingWorker

    } else {
      replacements.put(null, fixing);
    }

    // Do the replacements
    AutomaticFixingWorker dabWorker = new AutomaticFixingWorker(
        getWikipedia(), this, tmpPages, replacements,
        comment, true, buttonAutomaticCW.isSelected(), save);
    dabWorker.setListener(new DefaultBasicWorkerListener() {
      @Override
      public void afterFinished(
          BasicWorker worker,
          @SuppressWarnings("unused") boolean ok) {
        if (!worker.shouldContinue()) {
          return;
        }
        if (worker.get() instanceof Integer) {
          Integer count = (Integer) worker.get();
          if (count.intValue() == 0) {
            return;
          }
        }
        actionReload();
      }
    });
    dabWorker.start();
  }
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.