public void actionUpdateInfo() {
List<Page> selectedPages = tablePages.getSelectedPages();
if ((selectedPages == null) || (selectedPages.size() == 0)) {
return;
}
final UpdateInfoWorker updateWorker = new UpdateInfoWorker(
getWikipedia(), this, selectedPages);
updateWorker.setListener(new DefaultBasicWorkerListener() {
/* (non-Javadoc)
* @see org.wikipediacleaner.gui.swing.basic.DefaultBasicWorkerListener#afterFinished(org.wikipediacleaner.gui.swing.basic.BasicWorker, boolean)
*/
@Override
public void afterFinished(BasicWorker worker, boolean ok) {
tablePages.updateWatchedPages();
super.afterFinished(worker, ok);
updateBacklinksCount();
}
});
updateWorker.start();
}