rem: function onFileSelected(file) { if (file) { var path = file.leafName;  if (path) { if ((filePickerMode == nsIFilePicker.modeGetFolder) || !file.isDirectory()) textInput.value = path;  var buttonLabel = getOKAction(file); okButton.setAttribute("label", buttonLabel); okButton.disabled = false; return; 
add: function onFileSelected(/* nsIArray */ selectedFileList) { var validFileSelected = false; var invalidSelection = false; var file; var fileCount = selectedFileList.length;  for (var index = 0; index < fileCount; ++index) { file = selectedFileList.queryElementAt(index, nsIFile); if (file) { var path = file.leafName;  if (path) { var isDir = file.isDirectory(); if ((filePickerMode == nsIFilePicker.modeGetFolder) || !isDir) { if (!validFileSelected) textInput.value = ""; addToTextFieldValue(path); }  if (isDir && fileCount > 1) {    invalidSelection = true; }  validFileSelected = true; } 
context: function onFileSelected(file) {  if (file) {    var path = file.leafName;        if (path) {      if ((filePickerMode == nsIFilePicker.modeGetFolder) || !file.isDirectory())        textInput.value = path;            var buttonLabel = getOKAction(file);      okButton.setAttribute("label", buttonLabel);      okButton.disabled = false;      return;    }  }  okButton.disabled = (textInput.value == "");}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/72d11531a98c05182f7e0b93e89c5871fb7db820/filepicker.js/clean/toolkit/components/filepicker/content/filepicker.js