rem: dump("DefaultController:doCommand\n"); /* Because disabled button still fire oncommand event, we need to test again!!! */ if (defaultController.isCommandEnabled(command)) switch (command) { case "cmd_sendNow"        : SendMessage();        break; case "cmd_sendLater"      : SendMessageLater();   break; case "cmd_saveDefault"    : SaveAsDraft();        break; /* TEMPORARY: We should save either as file, as draft or template, depending of last save type */ case "cmd_saveAsDraft"    : SaveAsDraft();        break; case "cmd_saveAsTemplate" : SaveAsTemplate();     break; case "cmd_attachFile"     : AttachFile();         break; case "cmd_selectAddress"  : SelectAddress();     break; 
add: switch (command) {  case "cmd_attachFile"         : if (defaultController.isCommandEnabled(command)) AttachFile();           break; case "cmd_attachPage"         : AttachPage();           break; case "cmd_close"              : DoCommandClose();       break; case "cmd_saveDefault"        : SaveAsDraft();          break; /* TEMPORARY: We should save either as file, as draft or template, depending of last save type */ case "cmd_saveAsDraft"        : SaveAsDraft();          break; case "cmd_saveAsTemplate"     : SaveAsTemplate();       break; case "cmd_sendNow"            : if (defaultController.isCommandEnabled(command)) SendMessage();          break; case "cmd_sendLater"          : if (defaultController.isCommandEnabled(command)) SendMessageLater();     break; case "cmd_account"            : MsgAccountManager();    break; case "cmd_preferences"        : DoCommandPreferences(); break; 
context:   doCommand: function(command)  {    dump("DefaultController:doCommand\n");    /* Because disabled button still fire oncommand event, we need to test again!!! */    if (defaultController.isCommandEnabled(command))      switch (command)      {        case "cmd_sendNow"        : SendMessage();        break;        case "cmd_sendLater"      : SendMessageLater();   break;        case "cmd_saveDefault"    : SaveAsDraft();        break; /* TEMPORARY: We should save either as file, as draft or template, depending of last save type */        case "cmd_saveAsDraft"    : SaveAsDraft();        break;        case "cmd_saveAsTemplate" : SaveAsTemplate();     break;        case "cmd_attachFile"     : AttachFile();         break;        case "cmd_selectAddress"  : SelectAddress();     break;        default: return;      }  },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/1221a29a9c5e35b02b29085d8f9d9196d66b6343/MsgComposeCommands.js/clean/mailnews/compose/resources/content/MsgComposeCommands.js