@Override
    public void actionPerformed(final ActionEvent event) {
      if (event.getSource() == okButton) {
        try {
          if (!validateInput()) {
            return;
          }

          okPressed = true;
        } catch (final IOException e) {
          final String msg =
              "Save function diff view failed. Couldn't calculate source BinExport MD5.";
          logger.atSevere().withCause(e).log(msg);
          MessageBox.showError(getParent(), msg);

          return;
        }
      }

      dispose();
    }
Save dialog for function diff views.
java/ui/src/main/java/com/google/security/zynamics/bindiff/gui/dialogs/SaveFunctionDiffViewDialog.java