private void setDefaultNames() throws IOException {
    final String defaultDiffName =
        ((TabPanel)
                window.getController().getTabPanelManager().getTabbedPane().getSelectedComponent())
            .getTitle();
    setDefaultText(diffDatabaseFileName, defaultDiffName);

    String defaultPrimaryExportName = diff.getExportFile(ESide.PRIMARY).getName();
    defaultPrimaryExportName =
        BinDiffFileUtils.forceFilenameEndsNotWithExtension(
            defaultPrimaryExportName, Constants.BINDIFF_BINEXPORT_EXTENSION);
    setDefaultText(primaryExportFileName, defaultPrimaryExportName);

    String defaultSecondaryExportName = diff.getExportFile(ESide.SECONDARY).getName();
    defaultSecondaryExportName =
        BinDiffFileUtils.forceFilenameEndsNotWithExtension(
            defaultSecondaryExportName, Constants.BINDIFF_BINEXPORT_EXTENSION);
    setDefaultText(secondaryExportFileName, defaultSecondaryExportName);

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