rem: var filePicker = Components.classes["component: filePicker = filePicker.QueryInterface(Components.interfaces.nsIFileSpecWithUI);  
add:  var fp = Components.classes["component: fp.init(window, editorShell.GetString("OpenHTMLFile"), nsIFilePicker.modeOpen);   fp.setFilters(nsIFilePicker.filterText | nsIFilePicker.filterHTML | nsIFilePicker.filterAll);  
context: function EditorOpen(){  dump("In EditorOpen..\n");  var filePicker = Components.classes["component://netscape/filespecwithui"].createInstance();  filePicker = filePicker.QueryInterface(Components.interfaces.nsIFileSpecWithUI);         /* doesn't handle *.shtml files */  try {  	filePicker.chooseInputFile(editorShell.GetString("OpenHTMLFile"), filePicker.eHTMLFiles+filePicker.eTextFiles+filePicker.eAllFiles, 0, 0);    /* need to handle cancel (uncaught exception at present) */  }  catch (ex) {    dump("filePicker.chooseInputFile threw an exception\n");  }      /* check for already open window and activate it... */  var found = FindAndSelectEditorWindowWithURL(filePicker.URLString);  if (!found)  {  /* open new window */    window.openDialog( "chrome://editor/content",                 "_blank",                 "chrome,dialog=no,all",                 filePicker.URLString );  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0bbcf3b03721509c7074e339bdc9a9942e8b1357/EditorCommands.js/buggy/editor/ui/composer/content/EditorCommands.js