context: function CheckSpelling(){  var spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck);  if (spellChecker)  {    dump("Check Spelling starting...\n");    // Start the spell checker module. Return is first misspelled word    try {      firstMisspelledWord = spellChecker.StartSpellChecking();    }    catch(ex) {      dump("*** Exception error: StartSpellChecking\n");      return;    }    if( firstMisspelledWord == "")    {      try {        spellChecker.CloseSpellChecking();      }      catch(ex) {        dump("*** Exception error: CloseSpellChecking\n");        return;      }      // No misspelled word - tell user      editorShell.AlertWithTitle(editorShell.GetString("CheckSpelling"), editorShell.GetString("NoMisspelledWord"));     } else {      // Set spellChecker variable on window      window.spellChecker = spellChecker;      try {        window.openDialog("chrome://editor/content/EdSpellCheck.xul", "_blank", "chrome,close,titlebar,modal", "", firstMisspelledWord);      }      catch(ex) {        dump("*** Exception error: SpellChecker Dialog Closing\n");        return;      }// We might want to use this://      editorShell.AlertWithTitle(editorShell.GetString("CheckSpelling"), editorShell.GetString("CheckSpellingDone"));     }  }  contentWindow.focus();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/55e2ac48d1fb48ad8a914b30500b323d66968a41/EditorCommands.js/clean/editor/ui/composer/content/EditorCommands.js