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
return ( (Structure) value ).copy( );
			case IPropertyType.ELEMENT_REF_TYPE :
			case IPropertyType.STRUCT_REF_TYPE :
				ReferenceValue refValue = (ReferenceValue) value;
				return refValue.copy( );
			case IPropertyType.LIST_TYPE :
				return ModelUtil.clonePropertyList( (List) value );
		}
		return value;
	}
	/**
	 * Copies a list of simple property values.
	 * 
	 * @param value
	 *            the original value to copy
	 * @return the cloned list of simple property values
	 */
	private static Object clonePropertyList( List value )
	{
		if ( value == null )
			return null;
		ArrayList returnList = new ArrayList( );
		for ( int i = 0; i < value.size( ); i++ )
		{
			Object item = value.get( i );
			if ( item instanceof ElementRefValue )
			{
				returnList.add( ( (ElementRefValue) item ).copy( ) );
			}
			else