private void buildCategoryPathEditor() {
		categoryPathEditor = new CategoryPathSelectionEditor(pluginTool);
		JComponent editorComponent = categoryPathEditor.getEditorComponent();
		editorComponent.getAccessibleContext().setAccessibleName("Category");

		categoryPathEditor.setCellEditorValue(CategoryPath.ROOT);

		// Allow user to click on the text field to re-activate "create new" panel without forcing
		// a click on the radio button
		categoryPathEditor.addFocusListener(new FocusAdapter() {
			@Override
			public void focusGained(FocusEvent e) {
				createNewStructButton.setSelected(true);
				updateEnablement();
			}
		});
	}
Creates a new dialog with the given parent.

@param tool The current tool that this dialog needs to access services.
@param program the current program
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/data/CreateStructureDialog.java