@Override
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
final JLabel cell;
if (value instanceof SimilarTypeListModelEntry) {
SimilarTypeListModelEntry entry = (SimilarTypeListModelEntry) value;
cell = (JLabel) renderDelegate.getListCellRendererComponent(list, entry.getType(), index, isSelected, cellHasFocus);
cell.setText(cell.getText());
cell.setToolTipText("Computed similarity md5 sum:" + entry.getTypeSignature() + ".");
}
else {
cell = (JLabel) super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
}
return cell;