/*
* combobox to choose 'parent' of sub-types
*/
- List<String> soTerms = new ArrayList<>();
+ List<Object> soTerms = new ArrayList<>();
for (String term : relatedSoTerms.keySet())
{
soTerms.add(term);
}
// sort from most restrictive to most inclusive
- Collections.sort(soTerms, new Comparator<String>()
+ Collections.sort(soTerms, new Comparator<>()
{
@Override
- public int compare(String o1, String o2)
+ public int compare(Object o1, Object o2)
{
return Integer.compare(relatedSoTerms.get(o1).size(),
relatedSoTerms.get(o2).size());
}
});
List<String> tooltips = new ArrayList<>();
- for (String term : soTerms)
+ for (Object term : soTerms)
{
tooltips.add(getSOTermsTooltip(relatedSoTerms.get(term)));
}
- JComboBox<String> parentType = JvSwingUtils
+ JComboBox<Object> parentType = JvSwingUtils
.buildComboWithTooltips(soTerms, tooltips);
toSubtypes.add(parentType);