private void updateEnablement() {
		if (createNewStructButton.isSelected()) {
			nameTextField.setEnabled(true);
			categoryPathEditor.setEnabled(true);
			matchingStructuresTable.setEnabled(false);
			exactMatchButton.setEnabled(false);
			sizeMatchButton.setEnabled(false);
			matchingStructuresTable.clearSelection();
		}
		else {
			nameTextField.setEnabled(false);
			categoryPathEditor.setEnabled(false);
			matchingStructuresTable.setEnabled(true);
			exactMatchButton.setEnabled(true);
			sizeMatchButton.setEnabled(true);
		}
		rootPanel.repaint();

		updateStatus();
	}
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