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/ReportDesignSerializer.java
private void visitContainerProperties( DesignElement obj,
			DesignElement newElement, List properties )
	{
		elements.push( newElement );
		for ( int i = 0; i < properties.size( ); i++ )
		{
			PropertyDefn propDefn = (PropertyDefn) properties.get( i );
			List contents = new ContainerContext( obj, propDefn.getName( ) )
					.getContents( sourceDesign );
			Iterator iter = contents.iterator( );
			while ( iter.hasNext( ) )
				( (DesignElement) iter.next( ) ).apply( this );
		}
		elements.pop( );
	}
	/**
	 * Returns a newly created element by given elements. Do not copies values
	 * here. It only concerns names, container/content relationship.
	 * 
	 * @param element
	 *            the design element
	 * @return a newly created element
	 */
	private DesignElement createNewElement( DesignElement element )
	{
		ElementFactory factory = new ElementFactory( targetDesign );
		DesignElement newElement = factory.newElement(
				element.getDefn( ).getName( ), element.getName( ) )
				.getElement( );