rem: else aFilePicker.appendFilters(Components.interfaces.nsIFilePicker.filterAll); 
context: function appendFiltersForContentType(aFilePicker, aContentType, aSaveMode){  var bundle = getStringBundle();      switch (aContentType) {  case "text/html":    if (aSaveMode == MODE_COMPLETE)      aFilePicker.appendFilter(bundle.GetStringFromName("WebPageCompleteFilter"), "*.htm; *.html");    aFilePicker.appendFilter(bundle.GetStringFromName("WebPageHTMLOnlyFilter"), "*.htm; *.html");    if (aSaveMode == MODE_COMPLETE)      aFilePicker.appendFilters(Components.interfaces.nsIFilePicker.filterText);    break;  case "application/xhtml+xml":    if (aSaveMode == MODE_COMPLETE)      aFilePicker.appendFilter(bundle.GetStringFromName("WebPageCompleteFilter"), "*.xht; *.xhtml");    aFilePicker.appendFilter(bundle.GetStringFromName("WebPageXHTMLOnlyFilter"), "*.xht; *.xhtml");    if (aSaveMode == MODE_COMPLETE)      aFilePicker.appendFilters(Components.interfaces.nsIFilePicker.filterText);    break;  case "text/xml":  case "application/xml":    if (aSaveMode == MODE_COMPLETE)      aFilePicker.appendFilter(bundle.GetStringFromName("WebPageCompleteFilter"), "*.xml");    aFilePicker.appendFilter(bundle.GetStringFromName("WebPageXMLOnlyFilter"), "*.xml");    // It does not make sense to save as text because we have no idea how to format text only    break;  default:    var mimeInfo = getMIMEInfoForType(aContentType);    if (mimeInfo) {      var extCount = { };      var extList = { };      mimeInfo.GetFileExtensions(extCount, extList);            var extString = "";      for (var i = 0; i < extCount.value; ++i) {        if (i > 0)           extString += "; "; // If adding more than one extension, separate by semi-colon        extString += "*." + extList.value[i];      }            if (extCount.value > 0) {        aFilePicker.appendFilter(mimeInfo.Description, extString);      } else {        aFilePicker.appendFilters(Components.interfaces.nsIFilePicker.filterAll);      }            }    else      aFilePicker.appendFilters(Components.interfaces.nsIFilePicker.filterAll);    break;  }} 
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/242315acc91c9645846f81ff831c54be3396ac0f/contentAreaUtils.js/buggy/xpfe/communicator/resources/content/contentAreaUtils.js