private int getRowFor(String theName) {

		JTable table = getEditTable();
		int rows = table.getRowCount();
		for (int i = 0; i < rows; i++) {
			String name = (String) table.getValueAt(i, NAME_COL);
			if (name.equals(theName)) {
				return i;
			}
		}

		fail("Could not find row for '" + theName + "'");
		return -1; // can't get here
	}
Tests for editing an Enumerated data type.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/editor/EnumEditor1Test.java