Bug 164436 [Regression]Chart can't be converted to a template report item[02]
Description: Chart can't be converted to a template report item Build number: 2.2.0.v20061114-1013 Steps to reproduce: 1.New a chart 2.Right click the chart Expected result: "Create Template Report Item" is enabled Actual result: "Create Template Report Item" is grayed out Error log: N/A
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/util/ModelUtil.java
String nameSpace )
	{
		if ( propDefn == null || content == null )
			return;
		if ( propDefn.getTypeCode( ) != IPropertyType.ELEMENT_REF_TYPE
				&& propDefn.getTypeCode( ) != IPropertyType.EXTENDS_TYPE )
			return;
		Object value = content.getLocalProperty( module,
				(ElementPropertyDefn) propDefn );
		if ( value == null )
			return;
		ReferenceValue refValue = (ReferenceValue) value;
		refValue.setLibraryNamespace( nameSpace );
	}
	/**
	 * Determines whether there is a child in the given element, which is kind
	 * of the given element definition.
	 * 
	 * @param element
	 *            the element to find
	 * @param defn
	 *            the element definition type
	 * @return true if there is a child in the element whose type is the given
	 *         definition, otherwise false
	 */
	public static boolean containElement( DesignElement element,
			IElementDefn defn )
	{
		if ( element == null || defn == null )
			return false;