rem: panelTree.selectItem(openItem); 
add: var index = panelTree.contentView.getIndexOfItem(openItem); panelTree.view.selection.select(index); 
context:     closeBranches:      function(aComponentName) {        var panelChildren = document.getElementById("panelChildren");        var panelTree = document.getElementById("panelTree");        for(var i = 0; i < panelChildren.childNodes.length; i++) {          var currentItem = panelChildren.childNodes[i];          if (currentItem.id != aComponentName && currentItem.id != "primary") {            currentItem.removeAttribute("open");          }        }        var openItem = document.getElementById(aComponentName);        panelTree.selectItem(openItem);      }
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/WalletViewer.js/clean/extensions/wallet/editor/resources/content/WalletViewer.js