public void run() { if (autoSubmit && isTheFirstInQueue()) { this.cancel(); firstTime = true; statusWidget.setStatus(IUploadStatus.Status.SUBMITING); statusWidget.setVisible(true); // See issue #134 try { uploadForm.submit(); } catch (Exception e) { cancel(); cancelUpload(i18nStrs.uploaderInvalidPathError()); } } else if (firstTime) { addToQueue(); firstTime = false; } }
public void onCancel() { cancel(); }