public File getExportBinaryTargetFile(final ESide side) {
    String exportBinaryPath = FileUtils.ensureTrailingSlash(destinationDir.getPath());
    exportBinaryPath +=
        side == ESide.PRIMARY ? primaryExportFileName.getText() : secondaryExportFileName.getText();
    exportBinaryPath =
        BinDiffFileUtils.forceFilenameEndsWithExtension(
            exportBinaryPath, Constants.BINDIFF_BINEXPORT_EXTENSION);

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