rem:  gFilterTree.view.selection.clearSelection(); gFilterTree.builder.rebuild(); 
add: rebuildFilterTree(gCurrentServerURI); 
context: function refreshFilterList() {    if (!gFilterTree)       return;    // store the selected resource before we rebuild the tree    var selectedRes = gFilterTree.currentIndex >= 0 ? gFilterTree.builderView.getResourceAtIndex(gFilterTree.currentIndex) : null;    // rebuild the tree       gFilterTree.view.selection.clearSelection();    gFilterTree.builder.rebuild();    // restore selection to the previous selected resource    if (selectedRes) {        var previousSel = gFilterTree.builderView.getIndexOfResource(selectedRes);        if (previousSel >= 0) {            // sometimes the selected element is gone.            gFilterTree.treeBoxObject.selection.select(previousSel);            gFilterTree.treeBoxObject.ensureRowIsVisible(previousSel);        }    }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/aa1bf2e1b3f6b006698a4b79cdbb5bceadc03cce/FilterListDialog.js/buggy/mailnews/base/search/resources/content/FilterListDialog.js