private String getFieldName() {
		if (hasNoDataTypeComponent()) {
			return "";
		}

		DataTypeComponent dtc = composite.getComponent(ordinal);
		String fieldName = dtc.getFieldName();
		if (StringUtils.isBlank(fieldName)) {
			return "";
		}
		return fieldName;
	}
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