- SUIT_DataOwnerPtrList sel;
- mgr->selected( sel, client );
- myDataOwners = sel;
- SUIT_DataOwnerPtrList::const_iterator anIt = sel.begin(),
- aLast = sel.end();
- for( ; anIt!=aLast; anIt++ )
- {
- SUIT_DataOwner* owner = ( SUIT_DataOwner* )( (*anIt ).get() );
- SalomeApp_DataOwner* sowner = dynamic_cast<SalomeApp_DataOwner*>( owner );
- if( sowner )
- myTypes.append( typeName( type( sowner, aStudy ) ) );
- else
- myTypes.append( "Unknown" );
- }
+ for( int i=0, n=count(); i<n; i++ )
+ myTypes.append( typeName( type( entry( i ), aStudy ) ) );