Package org.wikipediacleaner.gui.swing.worker

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


      return;
    }
    if (!(from instanceof EnumWikipedia)) {
      return;
    }
    TranslateWorker worker = new TranslateWorker(
        getWikipedia(), this, (EnumWikipedia) from,
        getPage(), getTextContents().getText());
    worker.setListener(new DefaultBasicWorkerListener() {

      @Override
      public void afterFinished(BasicWorker localWorker, boolean ok) {
        if (!ok) {
          return;
        }
        Object result = localWorker.get();
        if ((result == null) || !(result instanceof String)) {
          return;
        }
        getTextContents().changeText((String) result);
        translated = true;
        actionValidate(true);
      }
     
    });
    worker.start();
  }
View Full Code Here

TOP

Related Classes of org.wikipediacleaner.gui.swing.worker.TranslateWorker

Copyright © 2018 www.massapicom. 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.