private void initItems() {
    int ctrlDownMask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMaskEx();
    newWorkspaceMenuItem =
        GuiUtils.buildMenuItem(
            "New Workspace...",
            'N',
            KeyEvent.VK_N,
            ctrlDownMask | InputEvent.SHIFT_DOWN_MASK,
            e -> controller.newWorkspace());

    loadWorkspaceMenuItem =
        GuiUtils.buildMenuItem(
            "Open Workspace...", 'O', KeyEvent.VK_O, ctrlDownMask, e -> controller.loadWorkspace());

    closeWorkspaceMenuItem =
        GuiUtils.buildMenuItem(
            "Close Workspace", 'W', KeyEvent.VK_W, ctrlDownMask, e -> controller.closeWorkspace());
    closeWorkspaceMenuItem.setEnabled(false); // Initial state: no workspace loaded

    if (!SystemHelpers.isRunningMacOSX() || !BinDiff.isDesktopIntegrationDone()) {
      exitMenuItem =
          GuiUtils.buildMenuItem(
              "Exit", 'Q', KeyEvent.VK_Q, ctrlDownMask, e -> controller.exitBinDiff());
    }
    addSubmenuEntries();
  }
The workspace menu that is visible under "File" initially and when managing workspaces in the
main window.
java/ui/src/main/java/com/google/security/zynamics/bindiff/gui/tabpanels/projecttabpanel/menubar/WorkspaceMenu.java