}
Class<?> clazz = obj.getClass();
if( EntityDetailDescriptor.class.isAssignableFrom( clazz ) )
{
EntityDetailDescriptor entityDesc = (EntityDetailDescriptor) obj;
Class entityType = first( entityDesc.descriptor().types() );
// Update the selected item on the combo box, which in turn update the properties table
ComboBoxModel comboModel = entitiesCombo.getModel();
int index = -1;
for( int i = 0; i < comboModel.getSize(); i++ )
{
EntityDetailDescriptor entityDesc1 = (EntityDetailDescriptor) comboModel.getElementAt( i );
Class entityType1 = first( entityDesc1.descriptor().types() );
if( entityType1.equals( entityType ) )
{
index = i;
break;