add: if (isDuplicateFilterNameExists()) { var commonDialogsService = Components.classes["@mozilla.org/appshell/commonDialogs;1"].getService(); commonDialogsService = commonDialogsService.QueryInterface(Components.interfaces.nsICommonDialogs);  if (commonDialogsService) { commonDialogsService.Alert(window, Bundle.GetStringFromName("cannotHaveDuplicateFilterTitle"), Bundle.GetStringFromName("cannotHaveDuplicateFilterMessage") ); }  return; }   
context: function onOk(){    if (!saveFilter()) return;    // parent should refresh filter list..    // this should REALLY only happen when some criteria changes that    // are displayed in the filter dialog, like the filter name    window.arguments[0].refresh = true;    window.close();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/52a7143b70cc4e3ebce1645be9cf3254d56637b1/FilterEditor.js/clean/mailnews/base/search/resources/content/FilterEditor.js