From: vsr Date: Tue, 1 Feb 2005 08:04:29 +0000 (+0000) Subject: PAL7832: Ignore 'Interface Applicative' component and it's children in the UseCase... X-Git-Tag: V2_2_0~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6fb9ca899aab545ff77c69e9fc34493d41a0ccd5;p=modules%2Fkernel.git PAL7832: Ignore 'Interface Applicative' component and it's children in the UseCase browser. --- diff --git a/src/SALOMEGUI/QAD_ObjectBrowser.cxx b/src/SALOMEGUI/QAD_ObjectBrowser.cxx index 8dbcba9f0..e97f591ed 100644 --- a/src/SALOMEGUI/QAD_ObjectBrowser.cxx +++ b/src/SALOMEGUI/QAD_ObjectBrowser.cxx @@ -1052,6 +1052,15 @@ void QAD_ObjectBrowser::UpdateUCItem( SALOMEDS::SObject_var UCObject, QAD_Object if ( myStudy->_is_nil() || !UCItem ) return; + // --- VSR: 01/02/05 --- start + // skip all 'Interface Applicative' objects + SALOMEDS::SComponent_var SCO = UCObject->GetFatherComponent(); + CORBA::String_var aCorbaString = SCO->ComponentDataType(); + QString dataType = aCorbaString.in(); + if ( dataType.compare("Interface Applicative") == 0 ) + return; + // --- VSR: 01/02/05 --- finish + /* Creating SObjects item */ SALOMEDS::SObject_var RefSO; SALOMEDS::GenericAttribute_var anAttr;