Salome HOME
Prepare SALOME 2.2.6 installation
[tools/install.git] / src / SALOME_XmlHandler.cxx
index 1372b7e77efeecaebd6ca9daeaddb94b14aa77e8..0be7084a7e36bc7a5cf33ae895733bad0b81b242 100644 (file)
@@ -118,6 +118,9 @@ bool StructureParser::startElement( const QString&        /*namespaceURI*/,
     QString descr = QString::null;
     if ( attributes.value( "description" ) != "" )
       descr = attributes.value( "description" ).stripWhiteSpace();
+    QString ctx = QString::null;
+    if ( attributes.value( "context" ) != "" )
+      ctx = attributes.value( "context" ).stripWhiteSpace().lower();
     bool pickUp = isBoolAttributeSet( attributes.value( "pickupenv" ) );
     myWizard->setDependancies( element, 
                               Dependancies( attributes.value( "name" ), 
@@ -127,6 +130,7 @@ bool StructureParser::startElement( const QString&        /*namespaceURI*/,
                                             attributes.value( "temporarydiskspace" ).toInt(),
                                             install,
                                             descr,
+                                            ctx,
                                             pickUp ) );
   }
   else if (( qName == "path" ) && ( attributes.length() > 0 ) && myWizard ) {