SALOMEDS::UseCaseBuilder_var UCBuilder = myStudy->GetUseCaseBuilder();
SALOMEDS::SObject_var SOCurrent = UCBuilder->GetCurrentObject();
+ bool isUseCase = UCBuilder->IsUseCase( UCObject );
QAD_ObjectBrowserItem* UCSubItem = 0;
if ( myUseCaseMap.contains( UCEntry ) && myUseCaseMap[ UCEntry ].count() > 0 )
aName = SALOMEDS::AttributeName::_narrow( anAttr );
aString = aName->Value();
if ( !UCSubItem ) {
- UCSubItem = AddItem( UCItem, aString.in(), UCEntry, ior, 0, "", valueString );
+ UCSubItem = AddItem( UCItem, aString.in(), UCEntry, ior, isUseCase ? 1 : 0, "", valueString );
myUseCaseMap[ UCEntry ].append( UCSubItem );
}
else {