Example #1
0
    @Override
    public void run() {
      if (pLastArchiveName != null) {
        JMessageDialog diag = new JMessageDialog(pParent, "Created: " + pLastArchiveName);
        diag.setVisible(true);
      }

      if (pArchives.get(pIndex) == null) return;

      JConfirmDialog diag =
          new JConfirmDialog(
              pParent,
              "Are you ready to write the next archive volume "
                  + "("
                  + (pIndex + 1)
                  + " of "
                  + pArchives.size()
                  + ")?");
      diag.setVisible(true);
      if (diag.wasConfirmed()) {
        ManualArchiveTask task =
            new ManualArchiveTask(pParent, pIndex, pPrefix, pArchives, pToolset, pArchiver);
        task.start();
      } else {
        showErrorDialog(
            "Warning:",
            "Archive operation aborted early without creating "
                + "("
                + (pArchives.size() - pIndex)
                + " of "
                + pArchives.size()
                + ") archive "
                + "volumes!");
      }
    }
Example #2
0
 /** @param parent */
 public void show(Component parent) {
   JMessageDialog.showMessage(parent, this);
 }