Bug 142893 Text key not found when library and report use different resource files
The following scenario was tested with BIRT 2.1RC2: - New library, assign resource file "r1.properties" which contains key/value-pair "k1=v1" - New label in library, set text key of label to "k1" - New report, assign resource file "r2.properties" which does not contain key/value-pair "k1=v1" - Drag and drop label from library to report body - Preview Expected result: - Report shows "v1" Actual result: - Report shows nothing. If key/value-pair "k1=v1" is added to r2.properties, than "v1" is shown.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/util/ModelUtil.java
* <ul>
	 * <li>If the value is of simple type, like integer, or string, the
	 * original value will be returned.
	 * <li>If the value is strcuture list, the cloned structure list will be
	 * cloned.
	 * <li>If the value is structure, the cloned structure will be cloned.
	 * <li>If the value is element/strucuture reference value, the
	 * element/structure name will be returned.
	 * </ul>
	 * 
	 * @param propDefn
	 *            definition of property
	 * @param value
	 *            value to clone
	 * @return new value
	 */
	public static Object copyValue( IPropertyDefn propDefn, Object value )
	{
		if ( value == null || propDefn == null )
			return null;
		switch ( propDefn.getTypeCode( ) )
		{
			case PropertyType.STRUCT_TYPE :
				if ( propDefn.isList( ) )
					return ModelUtil.cloneStructList( (List) value );
				return ( (Structure) value ).copy( );
			case PropertyType.ELEMENT_REF_TYPE :
			case PropertyType.STRUCT_REF_TYPE :
				ReferenceValue refValue = (ReferenceValue) value;
				return refValue.copy( );