Bug 122850 Table/list should not be able to be inserted in Master Page mode.
Description: Table/list should not be able to be inserted in Master Page mode. Steps to reproduce: 1. New a report and transfer to Master Page mode. 2. New a datasource and dataset 3. Drag a list/table to page header/footer, bind it to dataset and drag some columns inside. 4. Save and preview Expected result: Insert list/table item in master page should be forbidden. Actual result: They are allowed and preview showed "undefine" in page
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/core/DesignElement.java
if ( element instanceof TemplateElement )
			return canContainTemplateElement( module, slotID, defn );
		ContentIterator contents = new ContentIterator( element );
		while ( contents.hasNext( ) )
		{
			DesignElement content = (DesignElement) contents.next( );
			if ( content instanceof TemplateElement )
				return canContainTemplateElement( module, slotID, defn );
		}
		return true;
	}
	/**
	 * Checks whether the element to insert can reside in the given module.
	 * 
	 * @param module
	 *            the root module of the element to add
	 * @param slotID
	 *            the slot ID to insert
	 * @param defn
	 *            the definition of element to insert
	 * @return false if the module is a library and the element to insert is a
	 *         template element or its content is a template element; or the
	 *         container is report design and slot is component slot and the
	 *         element to insert is a template element or its content is a
	 *         template element; otherwise true
	 */
	private boolean canContainTemplateElement( Module module, int slotID,
			IElementDefn defn )
	{