Example #1
0
  protected boolean isKeepRetry() {
    if (this.retryCount-- > 0) {
      System.out.println("[" + cmds[0] + "] Retry load_section: " + retryCount);

      try {
        Thread.sleep(100);
      } catch (InterruptedException e) {
        System.err.println("[" + cmds[0] + "] Cannot do Thread.sleep()");
        e.printStackTrace();
      }

      return true;
    } else {
      if (keepMissingSectionWarning) {
        String mesg =
            "Cannot find URL of section image:\nleg: "
                + cmds[1]
                + ", site: "
                + cmds[2]
                + ", hole: "
                + cmds[3]
                + ", core: "
                + cmds[4]
                + ", type: "
                + cmds[5]
                + ", section: "
                + cmds[6];
        String title = "Missing core section";
        Object[] options = {"Ignore all", "OK"};

        int choice =
            JOptionPane.showOptionDialog(
                app.getMainFrame(),
                mesg,
                title,
                JOptionPane.YES_NO_OPTION,
                JOptionPane.INFORMATION_MESSAGE,
                null,
                options,
                options[1]);

        if (choice == 0) {
          keepMissingSectionWarning = false;
        }
      }

      return false;
    }
  }
Example #2
0
 static {
   app = CorelyzerApp.getApp();
 }