private void growStructureAsNeeded(Structure struct) {
			// This should not happen when editing from the Listing, since you must click on a valid
			// ordinal to start an edit.  It is not clear if the Decompiler has a use case where 
			// this can happen.
			int n = composite.getNumComponents();
			if (ordinal >= n) {
				int amount = ordinal - n;
				struct.growStructure(amount);
			}
		}
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