Bug 172273 Grid insert to masterpage dosen't display propertily [05]
Build Number: 2.2.0.v20070131-1050 Description: As the screenshot, insert a grid (3*3) in the master page.It can't be display propertily. Step to reproduce: 1. new a report and switch to masterpage 2. insert a grid (3*3) Actual result: Please refer to the screenshot, it's abnormal.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/util/LevelContentIterator.java
{
			buildContentsList( module, new ContainerContext( element, i ), level );
		}
		
		List properties = defn.getContainmentProperties( );
		for ( int i = 0; i < properties.size( ); i++ )
		{
			buildContentsList( module, new ContainerContext( element,
					( (PropertyDefn) properties.get( i ) ).getName( ) ), level );
		}
	}
	/**
	 * Adds the content elements of the given slot in the given container
	 * element into <code>elementContents</code>
	 * 
	 * @param element
	 *            the next element to build.
	 * @param slotId
	 *            the slot id.
	 */
	private void buildContentsList( Module module,
			ContainerContext containerInfor, int level )
	{
		if ( level <= 0 )
			return;
		List contents = containerInfor.getContents( module );
		for ( Iterator iter = contents.iterator( ); iter.hasNext( ); )
		{
			DesignElement e = (DesignElement) iter.next( );
			elementContents.add( e );