if (comboBoxActive)
{
final Object selectedItem = comboBox.getSelectedItem();
if (selectedItem instanceof FieldDefinition)
{
final FieldDefinition fieldDefinition = (FieldDefinition) selectedItem;
return fieldDefinition.getName();
}
if ("".equals(selectedItem))
{
return null;
}