public void exitBinDiff() {
    WorkspaceTabPanelFunctions workspaceController =
        tabPanelManager.getWorkspaceTabPanel().getController();
    if (workspaceController.closeWorkspace()) {
      workspaceController.closeDialogs();

      saveConfigFile();

      logger.atInfo().log("BinDiff closed normally");
    }

    System.exit(0);
  }
Holder class for the actual controller class TabPanelManager.
java/ui/src/main/java/com/google/security/zynamics/bindiff/gui/window/WindowFunctions.java