private boolean updateName() {
			if (!hasNameChange()) {
				return true;
			}

			DataTypeComponent dtc = composite.getComponent(ordinal);
			try {
				dtc.setFieldName(getNewFieldName());
				return true;
			}
			catch (DuplicateNameException e) {
				statusMessage = "Duplicate field name";
				return false;
			}
		}
Sets the pending new datatype and updates the datatype text field to the name of that
datatype.
@param dataType the new pending datatype
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/data/EditDataFieldDialog.java