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
ElementDefn metaData = (ElementDefn) content.getDefn( );
			if ( !metaData.canExtend( ) )
				continue;
			
			if ( content.getExtendsElement( ) != null )
				refreshStructureFromParent( module, content );
			else
				clearStructure( content );
		}
	}
	/**
	 * Add the virtual elements name into the module namespace.
	 * 
	 * @param element
	 *            the element contains virtual elements inside.
	 * @param module
	 *            the module
	 */
	public static void addTheVirualElementsToNamesapce( DesignElement element,
			Module module )
	{
		Iterator contentIter = new ContentIterator( module, element );
		while ( contentIter.hasNext( ) )
		{
			DesignElement virtualElement = (DesignElement) contentIter.next( );
			if ( virtualElement.getName( ) == null )
				continue;
			module.makeUniqueName( virtualElement );
			ElementDefn contentDefn = (ElementDefn) virtualElement.getDefn( );
			int id = contentDefn.getNameSpaceID( );