Bug 142928 Item from library is changed to a report design item after revert to report item
Details: Item from library is changed to a report design item after revert to report item. Setp: 1.New a template. 2.Use a libary contain a label. 3.Drop the label from library explorer into layout. 4.Change the label to template item. 5.Revert the template item to report item. Actual result: The label is become a report item, but a item from library. Please see the attach image. Exception result: The lable is revert a item from library.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/DesignElementHandle.java
}
		if ( DesignElement.NAME_PROP.equals( propName )
				|| DesignElement.EXTENDS_PROP.equals( propName ) )
		{
			throw new SemanticError( getElement( ), new String[]{propName},
					SemanticError.DESIGN_EXCEPTION_PROPERTY_COPY_FORBIDDEN );
		}
		switch ( propDefn.getTypeCode( ) )
		{
			case PropertyType.ELEMENT_REF_TYPE :
				ElementRefValue refValue = (ElementRefValue) value;
				if ( refValue.isResolved( ) )
					targetHandle.setProperty( propDefn.getName( ), refValue
							.getElement( ) );
				else
				{
					String name = refValue.getName( );
					name = ReferenceValueUtil.needTheNamespacePrefix(
							(ReferenceValue) value, getModule( ) );
					targetHandle.setProperty( propDefn.getName( ), name );
				}
				break;
			case PropertyType.STRUCT_REF_TYPE :
				StructRefValue structRefValue = (StructRefValue) value;
				if ( structRefValue.isResolved( ) )
					targetHandle.setProperty( propDefn.getName( ),
							structRefValue.getStructure( ) );
				else
					targetHandle.setProperty( propDefn.getName( ),
							structRefValue.getName( ) );