private void removeTextFromComment(String text) {
		String comment = commentField.getText().trim();
		int index = comment.indexOf(text);
		if (index < 0) {
			return;
		}

		// remove the given text and any spaces that follow it.
		comment = comment.replaceAll(text + "\\s*", "");
		commentField.setText(comment.trim());
	}
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