}
if (hideWindow) {
getParentComponent().setExtendedState(Frame.ICONIFIED);
}
getParentComponent().setTitle(GT._("Sending {0}", page.getTitle()));
SendWorker sendWorker = new SendWorker(
getWikipedia(), this, page, getTextContents().getText(),
(textComment != null) ?
textComment.getText() :
getWikipedia().getConfiguration().getUpdatePageMessage(),
forceWatch,
updateDabWarning, createDabWarning,
updateISBNWarning, createISBNWarning,
getContributions(), errorsFixed);
sendWorker.setListener(new DefaultBasicWorkerListener() {
@Override
public void afterFinished(
BasicWorker worker,
boolean ok) {
if (!worker.shouldContinue()) {
return;
}
if (ok) {
if ((chkCloseAfterSend != null) && chkCloseAfterSend.isSelected()) {
dispose();
} else {
worker.getWindow().setWindowTitle(getTitle());
worker.getWindow().setExtendedState(oldState);
actionReload();
}
} else {
worker.getWindow().setWindowTitle(getTitle());
worker.getWindow().setExtendedState(oldState);
}
}
});
sendWorker.start();
}