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
if ( source == null || target == null )
			throw new IllegalArgumentException( "Element can not be null." ); 
		ElementDefn defn = (ElementDefn) source.getDefn( );
		if ( defn != target.getDefn( ) )
			throw new IllegalArgumentException(
					"Two element are not the same type." ); 
		if ( !defn.isContainer( ) )
			return true;
		
		for ( int i = 0; i < defn.getSlotCount( ); i++ )
		{
			duplicateStructure( new ContainerContext( source, i ),
					new ContainerContext( target, i ), targetModule );
		}
		
		List properties = defn.getContainmentProperties( );
		for ( int i = 0; i < properties.size( ); i++ )
		{
			PropertyDefn propDefn = (PropertyDefn) properties.get( i );
			duplicateStructure(
					new ContainerContext( source, propDefn.getName( ) ),
					new ContainerContext( target, propDefn.getName( ) ),
					targetModule );
		}
		return true;
	}
	/**
	 * Duplicates the structure from one element to another element. Local
	 * properties will all be cleared.Please note that the containment
	 * relationship is kept while property values are not copied.