rem: ShowMenuItem(menuID, showMenuItem); if(showMenuItem) { EnableMenuItem(menuID, (numSelected > 0)); if(!isNewsgroup) { SetMenuItemValue(menuID, gMessengerBundle.getString("delete")); SetMenuItemAccessKey(menuID, gMessengerBundle.getString("deleteAccessKey")); } else { SetMenuItemValue(menuID, gMessengerBundle.getString("cancel")); SetMenuItemAccessKey(menuID, gMessengerBundle.getString("cancelAccessKey")); } } 
add: ShowMenuItem(menuID, showMenuItem); if(showMenuItem) { EnableMenuItem(menuID, (numSelected > 0)); if(!isNewsgroup) { SetMenuItemLabel(menuID, gMessengerBundle.getString("delete")); SetMenuItemAccessKey(menuID, gMessengerBundle.getString("deleteAccessKey")); } else { SetMenuItemLabel(menuID, gMessengerBundle.getString("cancel")); SetMenuItemAccessKey(menuID, gMessengerBundle.getString("cancelAccessKey")); } } 
context: function SetupDeleteMenuItem(menuID, numSelected, isNewsgroup, forceHide){	var showMenuItem = !forceHide;	ShowMenuItem(menuID, showMenuItem);	if(showMenuItem)	{		EnableMenuItem(menuID, (numSelected > 0));		if(!isNewsgroup)		{			SetMenuItemValue(menuID, gMessengerBundle.getString("delete"));			SetMenuItemAccessKey(menuID, gMessengerBundle.getString("deleteAccessKey"));		}		else		{			SetMenuItemValue(menuID, gMessengerBundle.getString("cancel"));			SetMenuItemAccessKey(menuID, gMessengerBundle.getString("cancelAccessKey"));		}	}}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/0b2dd2b2d2fd037df917e07645fa019a963332a5/mailContextMenus.js/buggy/mailnews/base/resources/content/mailContextMenus.js