context: function initializeDialog(filter){    var selectedPriority;    gFilterNameElement.value = filter.filterName;    gActionElement.selectedItem=gActionElement.getElementsByAttribute("value", filter.action)[0];    showActionElementFor(gActionElement.selectedItem);    if (filter.action == nsMsgFilterAction.MoveToFolder) {        // preselect target folder        var target = filter.actionTargetFolderUri;        if (target) {            SetFolderPicker(target, gActionTargetElement.id);        }    } else if (filter.action == nsMsgFilterAction.ChangePriority) {        // initialize priority        selectedPriority = gActionPriority.getElementsByAttribute("value", filter.actionPriority);        if (selectedPriority && selectedPriority.length > 0) {            selectedPriority = selectedPriority[0];            gActionPriority.selectedItem = selectedPriority;        }    }    else if (filter.action == nsMsgFilterAction.Label) {      var selectedLabel;      // initialize label      selectedLabel = gActionLabel.getElementsByAttribute("value", filter.actionLabel);        if (selectedLabel && selectedLabel.length > 0) {            selectedLabel = selectedLabel[0];            gActionLabel.selectedItem = selectedLabel;        }    }    var scope = getScope(filter);    setSearchScope(scope);    initializeSearchRows(scope, filter.searchTerms);    if (filter.searchTerms.Count() > 1)        gSearchLessButton.removeAttribute("disabled", "false");}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/71e1ffab7041d706ecdcfdbf01b42232fdf44f36/FilterEditor.js/clean/mailnews/base/search/resources/content/FilterEditor.js