public File getMatchesDatabaseTargetFile() {
    String matchesDbPath = FileUtils.ensureTrailingSlash(destinationDir.getPath());
    matchesDbPath += diffDatabaseFileName.getText();
    matchesDbPath =
        BinDiffFileUtils.forceFilenameEndsWithExtension(
            matchesDbPath, Constants.BINDIFF_MATCHES_DB_EXTENSION);

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