Bug 153537 Event Handler didn't work properly in masterpage
Steps to reproduce: 1.Run the attached report in Web Viewer, it works well 2.Click "print" to convert the output in PDF Expected result: Masterpage has the same view in Web Viewer and PDF Actual result: Masterpage didn't get right view
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ExecutionContext.java
return MAX_ERRORS;
	}
	
	/**
	 * @param max_errors the mAX_ERRORS to set
	 */
	public void setMaxErrors( int maxErrors )
	{
		MAX_ERRORS = maxErrors;
	}
	
	/**
	 * @param content
	 */
	public void registerOnPageBreak( IContent content )
	{
		Object[] pageBreakEvent = new Object[]{rset, content};
		openningContents.add( pageBreakEvent );
	}
	
	public List getAllOnPageBreaks( )
	{
		return openningContents;
	}
	
	public void unregisterOnPageBreak( IContent content )
	{
		for( int i = 0; i < openningContents.size( ); i++ )
		{
			Object[] pageBreakEvent = ( Object[] ) openningContents.get( i );