private void showProjectChooser() {
		DataTreeDialog dialog =
			new DataTreeDialog(null, "Choose " + getName(), type, filter, project);

		if (startFolder != null) {
			dialog.selectFolder(startFolder);
		}
		intializeCurrentValue(dialog);

		dialog.show();

		if (dialog.wasCancelled()) {
			return;
		}
		String text = getSelectedPath(dialog);
		textField.setText(text);
		dialog.dispose();
	}
Base class for either project file chooser or project folder chooser
Ghidra/Features/Base/src/main/java/ghidra/features/base/values/AbstractProjectBrowserPanel.java