rem: goSetMenuValue(command, 'valueMessage'); return true; 
add: case "button_delete": var threadTree = GetThreadTree(); dump("threadTree = " + threadTree + "\n"); var numSelected = 0; if ( threadTree && threadTree.selectedItems ) numSelected = threadTree.selectedItems.length; if ( command == "cmd_delete" ) { if ( numSelected < 2 ) goSetMenuValue(command, 'valueMessage'); else goSetMenuValue(command, 'valueMessages'); } return ( numSelected > 0 ); 
context: 	isCommandEnabled: function(command)	{		dump("ThreadPaneController.isCommandEnabled\n");		switch ( command )		{			case "cmd_selectAll":				return true;						case "cmd_delete":				goSetMenuValue(command, 'valueMessage');				return true;						default:				return false;		}	},
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/26fbbb140ddd210eae5945dfc04dfa2ace7bfbbf/widgetglue.js/buggy/mailnews/base/resources/content/widgetglue.js