rem: refresh_all_sidebars(); 
context: function SidebarTogglePanel(panel_menuitem) {  // Create a "container" wrapper around the current panels to  // manipulate the RDF:Seq more easily.  sidebarObj.datasource = RDF.GetDataSource(sidebarObj.datasource_uri);  var panel_id = panel_menuitem.getAttribute('id')  var panel_exclude = panel_menuitem.getAttribute('exclude')  if (panel_exclude == '') {    // Nothing excluded for this panel yet, so add this component to the list.    debug("Excluding " + panel_id + " from " + sidebarObj.component);    sidebarObj.datasource.Assert(RDF.GetResource(panel_id),                                RDF.GetResource(NC + "exclude"),                                RDF.GetLiteral(sidebarObj.component),                                true);  } else {    // Panel has an exclude string, but it may or may not have the    // current component listed in the string.    debug("Current exclude string: " + panel_exclude);    var new_exclude = panel_exclude;    if (is_excluded(panel_menuitem)) {      debug("Plucking this component out of the exclude list");      replace_pat = new RegExp(sidebarObj.component + "\s*");      new_exclude = new_exclude.replace(replace_pat,'');      new_exclude = new_exclude.replace(/^\s+/,'');      select_panel(panel_id);    } else {      debug("Adding this component to the exclude list");      new_exclude = new_exclude + " " + sidebarObj.component;    }    if (new_exclude == '') {      debug("Removing exclude list");      sidebarObj.datasource.Unassert(RDF.GetResource(panel_id),                                    RDF.GetResource(NC + "exclude"),                                    RDF.GetLiteral(sidebarObj.component));      select_panel(panel_id);    } else {      debug("New exclude string: " + new_exclude);      exclude_target =         sidebarObj.datasource.GetTarget(RDF.GetResource(panel_id),                                       RDF.GetResource(NC + "exclude"),                                       true);      sidebarObj.datasource.Change(RDF.GetResource(panel_id),                                  RDF.GetResource(NC + "exclude"),                                  exclude_target,                                  RDF.GetLiteral(new_exclude));    }  }  // Write the modified panels out.  sidebarObj.datasource.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource).Flush();  refresh_all_sidebars();}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/c312d56dc3ca1058eab790f21db0c8f4fda0eba7/sidebarOverlay.js/buggy/xpfe/components/sidebar/resources/sidebarOverlay.js