private void createEnum_Colors(Category category, DataTypeManager dataTypeManager) {
		int id = dataTypeManager.startTransaction("new enum 1");
		EnumDataType enumm = new EnumDataType(COLORS_NAME, 1);
		enumm.setLength(4);
		enumm.add("Red", 0x110);
		enumm.add("Green", 0x120);
		enumm.add("Blue", 0x230);

		category.addDataType(enumm, null);
		dataTypeManager.endTransaction(id, true);
		waitForTree();
	}
Tests for the action that creates labels from the names and values in a selection of enum
data types.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/CreateLabelsFromEnumsTest.java