public void onCreateContextMenu(CommentActivity commentActivity, ContextMenu menu, View v, ContextMenuInfo menuInfo) {
		if(config.isAllowDeleteComment()) {
			AdapterView.AdapterContextMenuInfo info; 
	        try { 
	             info = (AdapterView.AdapterContextMenuInfo) menuInfo; 
	             CommentListItem item = (CommentListItem) info.targetView;
	             if(item != null) {
	            	 if(item.isDeleteOk()) {
	            		  menu.setHeaderTitle("Delete");
	            		  menu.add(Menu.NONE, 0, 0, "Delete this comment");
	            	 }
	             }
	        } 
	        catch (ClassCastException e) {} 
		}
	}
public void onCreateContextMenu ( CommentActivity commentActivity , ContextMenu menu , View v , ContextMenuInfo menuInfo ) { if ( config . isAllowDeleteComment ( ) ) { AdapterView . AdapterContextMenuInfo info ; try { info = ( AdapterView . AdapterContextMenuInfo ) menuInfo ; CommentListItem item = ( CommentListItem ) info . targetView ; if ( item != null ) { if ( item . isDeleteOk ( ) ) { menu . setHeaderTitle ( "Delete" ) ; menu . add ( Menu . NONE , 0 , 0 , "Delete this comment" ) ; } } } catch ( ClassCastException e ) { } } }
@param commentActivity
@param menu
@param v
@param menuInfo
@return