rem: commonDialogsService.UniversalDialog( 
add: promptService.UniversalDialog( 
context: function CheckAndSaveDocument(reasonToSave, allowDontSave){  var document = editorShell.editorDocument;  if (!editorShell.documentModified)    return true;  // call window.focus, since we need to pop up a dialog  // and therefore need to be visible (to prevent user confusion)  window.focus();    var title = window.editorShell.editorDocument.title;  if (!title)    title = GetString("untitled");  var dialogTitle = window.editorShell.GetString("SaveDocument");  var dialogMsg = window.editorShell.GetString("SaveFilePrompt");  dialogMsg = (dialogMsg.replace(/%title%/,title)).replace(/%reason%/,reasonToSave);  var result = {value:0};  commonDialogsService.UniversalDialog(    window,    null,    dialogTitle,    dialogMsg,    null,    window.editorShell.GetString("Save"),     // Save Button    window.editorShell.GetString("Cancel"),   // Cancel Button    (allowDontSave ? window.editorShell.GetString("DontSave") : null), // Don't Save Button    null,    null,    null,    {value:0},    {value:0},    "chrome://global/skin/question-icon.gif",    {value:"false"},    (allowDontSave ? 3 : 2),    0,    0,    result    );   if (result.value == 0)   {     // Save     var success = window.editorShell.saveDocument(false, false, window.gDefaultSaveMimeType);     return success;   }   if (result.value == 2) // "Don't Save"     return true;  // Default or result.value == 1 (Cancel)  return false;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/9751b284abd25f2b41bf101e63d00202c4718fe9/editor.js/buggy/editor/ui/composer/content/editor.js