rem: dump("In EditorOpen..\n");  var fp = Components.classes["component: fp.init(window, editorShell.GetString("OpenHTMLFile"), nsIFilePicker.modeOpen);   fp.setFilters(nsIFilePicker.filterText | nsIFilePicker.filterHTML | nsIFilePicker.filterAll);  /* doesn't handle *.shtml files */ try { fp.show(); /* 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... * note that we have to test the native path length *  since fileURL.spec will be "file: */ if (fp.file && fp.file.path.length > 0) {  var found = FindAndSelectEditorWindowWithURL(fp.fileURL.spec); if (!found) {  if (PageIsEmptyAndUntouched()) { editorShell.LoadUrl(fp.fileURL.spec); } else { /* open new window */ window.openDialog("chrome: "_blank", "chrome,dialog=no,all", fp.fileURL.spec); } } } 
add: return _EditorObsolete(); 
context: function EditorOpen(){  dump("In EditorOpen..\n");  var fp = Components.classes["component://mozilla/filepicker"].createInstance(nsIFilePicker);  fp.init(window, editorShell.GetString("OpenHTMLFile"), nsIFilePicker.modeOpen);  // While we include "All", include filters that prefer HTML and Text files  fp.setFilters(nsIFilePicker.filterText | nsIFilePicker.filterHTML | nsIFilePicker.filterAll);  /* doesn't handle *.shtml files */  try {    fp.show();    /* 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...    * note that we have to test the native path length   *  since fileURL.spec will be "file:///" if no filename picked (Cancel button used)  */  if (fp.file && fp.file.path.length > 0) {    var found = FindAndSelectEditorWindowWithURL(fp.fileURL.spec);    if (!found)    {      // if the existing window is untouched, just load there      if (PageIsEmptyAndUntouched())      {        editorShell.LoadUrl(fp.fileURL.spec);      }      else      {	      /* open new window */	      window.openDialog("chrome://editor/content",	                        "_blank",	                        "chrome,dialog=no,all",	                        fp.fileURL.spec);      }    }  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/035965297dd3eee99dadbd7c3a6f8560d975d3ea/EditorCommands.js/clean/editor/ui/composer/content/EditorCommands.js