public String getWorkspacePath() {
    if (createDirectory.isSelected()) {
      String path = workspaceDirectoryPanel.getText();
      if (!path.endsWith(File.separator)) {
        path += File.separator;
      }

      return path + workspaceName.getText();
    }

    return workspaceDirectoryPanel.getText();
  }
Dialog for creating new BinDiff workspaces.
java/ui/src/main/java/com/google/security/zynamics/bindiff/gui/dialogs/NewWorkspaceDialog.java