@Override
    public void actionPerformed(final ActionEvent event) {
      if ((event.getSource() == primaryExportOverwrite && primaryExportOverwrite.isSelected())
          || (event.getSource() == secondaryExportOverwrite
              && secondaryExportOverwrite.isSelected())) {
        MessageBox.showWarning(
            SaveFunctionDiffViewDialog.this,
            String.format(
                "The file '%s' already exists with different contents!\n"
                    + "If you choose override make sure that the new and the existing "
                    + "disassembly are\n"
                    + "structurally identical, e.g. only comments have been added or modified. "
                    + "Otherwise,\n"
                    + "existing older saved views may not be loadable anymore!",
                getExportBinaryTargetFile(
                        event.getSource() == primaryExportOverwrite
                            ? ESide.PRIMARY
                            : ESide.SECONDARY)
                    .getName()));
      }
    }
Save dialog for function diff views.
java/ui/src/main/java/com/google/security/zynamics/bindiff/gui/dialogs/SaveFunctionDiffViewDialog.java