rem: switch(filePickerMode) { case nsIFilePicker.modeGetFolder: return gFilePickerBundle.getString("selectFolderButtonLabel"); break; case nsIFilePicker.modeOpen: return gFilePickerBundle.getString("openButtonLabel"); break; case nsIFilePicker.modeSave: return gFilePickerBundle.getString("saveButtonLabel"); break; 
add: if (file && file.isDirectory() && filePickerMode != nsIFilePicker.modeGetFolder) { doSetOKCancel(openOnOK, onCancel); buttonLabel = gFilePickerBundle.getString("openButtonLabel"); 
context: function getOKAction(file) {  if (file && file.isDirectory() && filePickerMode != nsIFilePicker.modeGetFolder)    return gFilePickerBundle.getString("openButtonLabel");  switch(filePickerMode) {  case nsIFilePicker.modeGetFolder:    return gFilePickerBundle.getString("selectFolderButtonLabel");    break;  case nsIFilePicker.modeOpen:    return gFilePickerBundle.getString("openButtonLabel");    break;  case nsIFilePicker.modeSave:    return gFilePickerBundle.getString("saveButtonLabel");    break;  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/31114d9591b781e8d786a691c8e8385336bb718d/filepicker.js/buggy/xpfe/components/filepicker/res/content/filepicker.js