private void updateStatus() {

		clearStatusText();

		if (useExistingStructButton.isSelected()) {
			Structure structure = getSelectedStructure();
			if (structure != null) {
				updateStatusText(false, structure.getName());
			}
		}
		else {
			updateStatusText(true, nameTextField.getText());
		}
	}
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