rem: var errorTitle = gFilePickerBundle.getFormattedString("errorOpenFileDoesntExistTitle", [dir.unicodePath]); var errorMessage = gFilePickerBundle.getFormattedString("errorDirNotReadableMessage", [dir.unicodePath]); var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService); promptService.alert(window, errorTitle, errorMessage); 
add: showFilePermissionsErrorDialog("errorOpenFileDoesntExistTitle", "errorDirNotReadableMessage", dir); 
context: function openOnOK(){  var dir = outlinerView.getSelectedFile();  if (!dir.isReadable()) {    var errorTitle =      gFilePickerBundle.getFormattedString("errorOpenFileDoesntExistTitle",                                           [dir.unicodePath]);    var errorMessage =      gFilePickerBundle.getFormattedString("errorDirNotReadableMessage",                                           [dir.unicodePath]);    var promptService =      Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService);    promptService.alert(window, errorTitle, errorMessage);    return false;  }  if (dir)    gotoDirectory(dir);  retvals.file = dir;  retvals.buttonStatus = nsIFilePicker.returnCancel;    var filterMenuList = document.getElementById("filterMenuList");  retvals.filterIndex = filterMenuList.selectedIndex;    return false;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/713cfbe35bddc5804f476aacaaa6878ac8420889/filepicker.js/buggy/xpfe/components/filepicker/res/content/filepicker.js