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/ElementStructureUtil.java
* 
	 * @param sourceInfor
	 * @param targetInfor
	 */
	private static void duplicateStructure( ContainerContext sourceInfor,
			ContainerContext targetInfor, Module targetModule )
	{
		
		
		
		targetInfor.clearContents( );
		for ( int j = 0; j < sourceInfor.getContentCount( null ); j++ )
		{
			DesignElement sourceContent = sourceInfor.getContent( null, j );
			
			DesignElement targetContent = null;
			if ( sourceContent instanceof ExtendedItem )
			{
				ExtendedItem extendedItem = (ExtendedItem) sourceContent;
				targetContent = new ExtendedItem( sourceContent.getName( ) );
				targetContent
						.setProperty( IExtendedItemModel.EXTENSION_NAME_PROP,
								extendedItem.getProperty( extendedItem
										.getRoot( ),
										IExtendedItemModel.EXTENSION_NAME_PROP ) );
			}
			else if ( sourceContent instanceof OdaDataSet )
			{
			}
			else if ( sourceContent instanceof OdaDataSource )