private void addEntry(final JTable table, final EnumTableModel model, final String name,
			final long value) throws Exception {
		addEnumValue();
		waitForSwing();
		final int row = model.getRowCount() - 1;
		// change entry
		table.addRowSelectionInterval(row, row);
		Rectangle rect = table.getCellRect(row, NAME_COL, true);
		clickMouse(table, 1, rect.x, rect.y, 2, 0);

		runSwing(() -> {
			TableCellEditor editor = table.getCellEditor(row, NAME_COL);
			Component c = editor.getTableCellEditorComponent(table, model.getValueAt(row, NAME_COL),
				true, row, NAME_COL);
			JTextField tf = (JTextField) c;
			tf.setText(name);
			editor.stopCellEditing();
		});
		waitForSwing();
		rect = table.getCellRect(row, VALUE_COL, true);
		clickMouse(table, 1, rect.x, rect.y, 2, 0);

		runSwing(() -> {
			TableCellEditor editor = table.getCellEditor(row, VALUE_COL);

			Component c = getEditorComponent(editor);
			JTextField tf = (JTextField) c;
			tf.setText("0x" + Long.toHexString(value));
			editor.stopCellEditing();
		});
		waitForSwing();
	}
Tests for editing an Enumerated data type.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/editor/EnumEditor1Test.java