@Override
	public boolean applyTo(Program program) {
		if (comp == null) {
			statusMsg = "Null data type";
			return false;
		}
		try {
			comp.setFieldName(newName);
			return true;
		}
		catch (DuplicateNameException e) {
			statusMsg = "Type name already exists: " + newName;
		}
		return false;
	}
Construct a new RenameDataFieldCmd.
@param comp component in data type to be renamed
@param newName new name for the component
Ghidra/Features/Base/src/main/java/ghidra/app/cmd/data/RenameDataFieldCmd.java