rem: gDialog.AddJSEAttributeValueInput.value =  GetTreeItemValueStr(tree.selectedItems[0]); 
add: gDialog.AddJSEAttributeValueInput.value =  GetTreeItemValueStr(getSelectedItem(tree)); 
context: function onSelectJSETreeItem(){  var tree = gDialog.AddJSEAttributeTree;  if (tree && tree.selectedItems && tree.selectedItems.length)  {    var name = GetTreeItemAttributeStr(tree.selectedItems[0]);    // Select attribute name in list    if (gDialog.AddJSEAttributeNameList.firstChild)    {      var arr = gDialog.AddJSEAttributeNameList.firstChild.getElementsByAttribute('label', name);      if (arr && arr.length)        gDialog.AddJSEAttributeNameList.selectedItem = arr[0];      // Set value input to that in tree (no need to update this in the tree)      gUpdateTreeValue = false;      gDialog.AddJSEAttributeValueInput.value =  GetTreeItemValueStr(tree.selectedItems[0]);      gUpdateTreeValue = true;    }  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/EdAEJSEAttributes.js/buggy/editor/ui/dialogs/content/EdAEJSEAttributes.js