protected void updatedName() {

		if (!nameTextField.isShowing()) {
			return;
		}

		if (nameTextField.getTextEntryStatus() != CHANGED) {
			return;
		}

		setStatus("");

		// Adjust the value.
		String newName = nameTextField.getText().trim();
		if (!DataUtilities.isValidDataTypeName(newName)) {
			if (newName.length() == 0) {
				model.setStatus("Name is required.");
			}
			else {
				model.setStatus(newName + " is not a valid name.");
			}
			return;
		}
		String originalDtName = model.getOriginalDataTypeName();
		if (!newName.equals(originalDtName) && newName.length() == 0) {
			setCompositeName(originalDtName);
			model.setStatus("Name is required. So original name has been restored.");
			return;
		}

		setCompositeName(newName);

		if (!newName.equals(model.getCompositeName())) {
			try {
				model.setName(newName);
			}
			catch (DuplicateNameException e) {
				model.setStatus("Can't duplicate name \"" + newName + "\".");
			}
			catch (InvalidNameException e) {
				model.setStatus("\"" + newName + "\" isn't a valid name.");
			}
		}
	}
Gets called when the user updates the name.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/compositeeditor/CompEditorPanel.java