@Override
			public Component getTableCellRendererComponent(GTableCellRenderingData data) {

				Component c = super.getTableCellRendererComponent(data);

				Object rowObject = data.getRowObject();
				boolean isSelected = data.isSelected();

				EquateRowObject eqRowObject = (EquateRowObject) rowObject;
				int refCount = eqRowObject.getRefCount();
				if (refCount > 0) {
					if (eqRowObject.getEntryName().contains(EquateManager.ERROR_TAG)) {
						c.setForeground(isSelected ? FG_EQUATE_SELECED_COLOR : FG_BAD_EQUATE_COLOR);
					}
					else {
						Equate e = eqRowObject.getEquate();
						if (e != null && !e.isEnumBased()) {
							c.setForeground(isSelected ? FG_EQUATE_SELECED_COLOR : FG_EQUATE_COLOR);
						}
					}
				}
				else {
					c.setForeground(isSelected ? FG_EQUATE_SELECED_COLOR : FG_SUGGESTION_COLOR);
				}
				return c;
			}
Constructor

@param tool the EquatePlugin that launched this dialog(used to validate input)
@param program the program the equate is located in.
@param value the equate value to set.
Ghidra/Features/Base/src/main/java/ghidra/app/util/bean/SetEquateDialog.java