+ emit contentModified();
+}
+
+//================================================================================
+/*!
+ * \brief Initialize selected objects
+ * \param objects - entries of objects
+ */
+//================================================================================
+
+void StdMeshersGUI_ObjectReferenceParamWdg::SetObjects(SMESH::string_array_var& objects)
+{
+ myObjects.clear();
+ myObjNameLineEdit->setText( myEmptyText );
+ myObjNameLineEdit->setStyleSheet(myEmptyStyleSheet);
+ myParamValue = "";
+ bool selChanged = false;
+
+ for ( unsigned i = 0; i < objects->length(); ++i )
+ {
+ _PTR(Study) aStudy = SMESH::GetActiveStudyDocument();
+ _PTR(SObject) aSObj = aStudy->FindObjectID(objects[i].in());
+ CORBA::Object_var anObj = SMESH::SObjectToObject(aSObj,aStudy);
+ if ( !CORBA::is_nil( anObj )) {
+ std::string name = aSObj->GetName();
+ QString text = myObjNameLineEdit->text();
+ if ( text != myEmptyText )
+ text += " ";
+ else
+ text = "";
+ text += QString( name.c_str() ).trimmed();
+ myObjNameLineEdit->setText( text );
+ myObjNameLineEdit->setStyleSheet("");
+ myObjects.push_back( anObj );
+ myParamValue += " ";
+ myParamValue += objects[i];
+ selChanged = true;
+ }
+ }
+ if (selChanged)
+ emit contentModified();