rem: ReplaceStringInTreeList(gDialog.DictionaryList, selIndex, gWordToAdd); 
add: selItem.label = gWordToAdd; 
context: function ReplaceWord(){  if (ValidateWordToAdd())  {    var selIndex = gDialog.DictionaryList.selectedIndex;    if (selIndex >= 0)    {      gSpellChecker.RemoveWordFromDictionary(GetSelectedTreelistValue(gDialog.DictionaryList));      try {        // Add to the dictionary list        gSpellChecker.AddWordToDictionary(gWordToAdd);        // Just change the text on the selected item        //  instead of rebuilding the list        ReplaceStringInTreeList(gDialog.DictionaryList, selIndex, gWordToAdd);      } catch (e) {        // Rebuild list and select the word - it was probably already in the list        dump("Exception occured adding word in ReplaceWord\n");        FillDictionaryList();        SelectWordToAddInList();      }    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/db9f2fff82069a9541ab1d6e59faab309c0f4fce/EdDictionary.js/buggy/editor/ui/dialogs/content/EdDictionary.js