rem: SetupNewMessageWindowMenuItem("messagePaneContext-openNewWindow", numSelected, (numSelected == 0)); SetupEditAsNewMenuItem("messagePaneContext-editAsNew", numSelected, (numSelected == 0)); SetupReplyToSenderMenuItem("messagePaneContext-replySender", numSelected, (numSelected == 0)); SetupReplyToNewsgroupMenuItem("messagePaneContext-replyNewsgroup", numSelected, isNewsgroup, (numSelected == 0)); SetupReplyAllMenuItem("messagePaneContext-replyAll" , numSelected, (numSelected == 0)); SetupForwardMenuItem("messagePaneContext-forward", numSelected, (numSelected == 0)); SetupMoveMenuItem("messagePaneContext-moveMenu", numSelected, isNewsgroup, (numSelected == 0));"context-copy" SetupCopyMenuItem("messagePaneContext-copyMenu", numSelected, (numSelected == 0)); SetupSaveAsMenuItem("messagePaneContext-saveAs", numSelected, (numSelected == 0)); SetupPrintMenuItem("messagePaneContext-print", numSelected, (numSelected == 0)); SetupDeleteMenuItem("messagePaneContext-delete", numSelected, (numSelected == 0)); SetupAddSenderToABMenuItem("messagePaneContext-addSenderToAddressBook", numSelected, (numSelected == 0)); SetupAddAllToABMenuItem("messagePaneContext-addAllToAddressBook", numSelected, (numSelected == 0)); 
add: SetupEditAsNewMenuItem("messagePaneContext-editAsNew", numSelected, (numSelected == 0 || hideMailItems)); SetupReplyToSenderMenuItem("messagePaneContext-replySender", numSelected, (numSelected == 0 || hideMailItems)); SetupReplyToNewsgroupMenuItem("messagePaneContext-replyNewsgroup", numSelected, isNewsgroup, (numSelected == 0 || hideMailItems)); SetupReplyAllMenuItem("messagePaneContext-replyAll" , numSelected, (numSelected == 0 || hideMailItems)); SetupForwardMenuItem("messagePaneContext-forward", numSelected, (numSelected == 0 || hideMailItems)); SetupForwardAsAttachmentMenuItem("threadPaneContext-forwardAsAttachment", numSelected, hideMailItems); SetupMoveMenuItem("messagePaneContext-moveMenu", numSelected, isNewsgroup, (numSelected == 0 || hideMailItems)); SetupCopyMenuItem("messagePaneContext-copyMenu", numSelected, (numSelected == 0 || hideMailItems)); SetupSaveAsMenuItem("messagePaneContext-saveAs", numSelected, (numSelected == 0 || hideMailItems)); SetupPrintMenuItem("messagePaneContext-print", numSelected, (numSelected == 0 || hideMailItems)); SetupDeleteMenuItem("messagePaneContext-delete", numSelected, isNewsgroup, (numSelected == 0 || hideMailItems)); SetupAddSenderToABMenuItem("messagePaneContext-addSenderToAddressBook", numSelected, (numSelected == 0 || hideMailItems)); SetupAddAllToABMenuItem("messagePaneContext-addAllToAddressBook", numSelected, (numSelected == 0 || hideMailItems)); 
context: function fillMessagePaneContextMenu(contextMenuNode){	contextMenu = new nsContextMenu(contextMenuNode);	var message = GetLoadedMessage();	var numSelected = (message) ? 1 : 0;	var isNewsgroup = false;	if(numSelected == 1)		isNewsgroup = GetMessageType(message) == "news";	SetupNewMessageWindowMenuItem("messagePaneContext-openNewWindow", numSelected, (numSelected == 0));	SetupEditAsNewMenuItem("messagePaneContext-editAsNew", numSelected, (numSelected == 0));	SetupReplyToSenderMenuItem("messagePaneContext-replySender", numSelected, (numSelected == 0));	SetupReplyToNewsgroupMenuItem("messagePaneContext-replyNewsgroup", numSelected, isNewsgroup, (numSelected == 0));	SetupReplyAllMenuItem("messagePaneContext-replyAll" , numSelected, (numSelected == 0));	SetupForwardMenuItem("messagePaneContext-forward", numSelected, (numSelected == 0));	SetupMoveMenuItem("messagePaneContext-moveMenu", numSelected, isNewsgroup, (numSelected == 0));"context-copy"	SetupCopyMenuItem("messagePaneContext-copyMenu", numSelected, (numSelected == 0));	SetupSaveAsMenuItem("messagePaneContext-saveAs", numSelected, (numSelected == 0));	SetupPrintMenuItem("messagePaneContext-print", numSelected, (numSelected == 0));	SetupDeleteMenuItem("messagePaneContext-delete", numSelected, (numSelected == 0));	SetupAddSenderToABMenuItem("messagePaneContext-addSenderToAddressBook", numSelected, (numSelected == 0));	SetupAddAllToABMenuItem("messagePaneContext-addAllToAddressBook", numSelected, (numSelected == 0));	//Figure out separators	ShowMenuItem("messagePaneContext-sep-open", ShowMessagePaneOpenSeparator());	ShowMenuItem("messagePaneContext-sep-reply", ShowMessagePaneReplySeparator());	ShowMenuItem("messagePaneContext-sep-edit", ShowMessagePaneEditSeparator());	ShowMenuItem("messagePaneContext-sep-addressBook", ShowMessagePaneABSeparator());	ShowMenuItem("messagePaneContext-sep-link", ShowMessagePaneLinkSeparator());	ShowMenuItem("messagePaneContext-sep-image", ShowMessagePaneImageSeparator());	ShowMenuItem("messagePaneContext-sep-copy", ShowMessagePaneCopySeparator());}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/18196c4b732af6b94e9651fc3dc40ab0eabfa685/mailContextMenus.js/buggy/mailnews/base/resources/content/mailContextMenus.js