rem: var rdf = Components.classes[RDFSERVICE_CONTRACTID].getService(nsIRDFService); if (rdf) { var localStore = rdf.GetDataSource("rdf:local-store"); if (localStore) { var engineBox = document.getElementById("engineKids"); if( engineBox ) { var numEngines = engineBox.childNodes.length; var checkedProperty = rdf.GetResource("http: var categorySRC = rdf.GetResource( aCategory, true ); for (var x = 0; x<numEngines; x++) { var treeitemNode = engineBox.childNodes[x]; var engineURI = treeitemNode.getAttribute("id"); var engineSRC = rdf.GetResource( engineURI, true ); 
add: var rdf = Components.classes[RDFSERVICE_CONTRACTID].getService(nsIRDFService); var localStore = rdf.GetDataSource("rdf:local-store"); if (localStore) { var engineBox = document.getElementById("engineKids"); var numEngines = engineBox.childNodes.length; var checkedProperty = rdf.GetResource("http: var categorySRC = rdf.GetResource(aCategory, true); for (var x = 0; x < numEngines; ++x) { var treeitemNode = engineBox.childNodes[x]; var engineURI = treeitemNode.getAttribute("id"); var engineSRC = rdf.GetResource(engineURI, true); 
context: function loadEngines( aCategory ){    var rdf = Components.classes[RDFSERVICE_CONTRACTID].getService(nsIRDFService);    if (rdf)    {        var localStore = rdf.GetDataSource("rdf:local-store");        if (localStore)        {            var engineBox = document.getElementById("engineKids");            if( engineBox )            {                var numEngines = engineBox.childNodes.length;                var checkedProperty = rdf.GetResource("http://home.netscape.com/NC-rdf#checked", true);                var categorySRC = rdf.GetResource( aCategory, true );                for (var x = 0; x<numEngines; x++)                {                    var treeitemNode = engineBox.childNodes[x];                    var engineURI = treeitemNode.getAttribute("id");                    var engineSRC = rdf.GetResource( engineURI, true );                    var checkboxNode = treeitemNode.firstChild.firstChild.firstChild;                    if (!checkboxNode) continue;                    var hasAssertion = localStore.HasAssertion( categorySRC, checkedProperty, engineSRC, true );                    if (hasAssertion)                    {                        checkboxNode.checked = true;                    }                }            }        }    }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/80bc9df5e6e01fb476a458dc4eefcdc6a06519ad/search-panel.js/clean/xpfe/components/search/resources/search-panel.js