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
* Local properties will all be cleared.Please note that the containment
	 * relationship is kept while property values are not copied.
	 * <p>
	 * The two element should be the same type.
	 * 
	 * @param childModule
	 *            the module where the child element resides
	 * 
	 * @param child
	 *            the child element
	 * @param parent
	 *            the extends parent element
	 * @return <code>true</code> if the refresh action is successful.
	 *         <code>false</code> othersize.
	 * 
	 */
	public static boolean updateStructureFromParent( Module childModule,
			DesignElement child, DesignElement parent )
	{
		if ( child == null || parent == null )
			return false;
		if ( child.getExtendsElement( ) != parent )
			return false;
		Map overriddenValues = collectPropertyValues( childModule, child );
		boolean retValue = duplicateStructure( parent, child, childModule );
		distributeValues( childModule, child, overriddenValues );
		return retValue;
	}
	/**
	 * Scatters overridden values to virtual elements in the given design