Example #1
0
 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;
   }
 }
Example #2
0
 public void onCancel() {
   cancel();
 }