Bug 201526 Mutil parameter value will show the mutil value[0705]
Description: Mutil parameter value will show the mutil value[0705] Step: 1. New a list parameter and select allow multiple value 2. Add some value in it. 3. Drop the parameter in layout( param["NewParameter1"] ). 4. Preview and select several value. Actual result: It will preview a object string. Expected result: The value that is selected will be previewed.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/presentation/LocalizedContentVisitor.java
{
		assert IForeignContent.TEMPLATE_TYPE.equals( foreignContent
				.getRawType( ) );
		if ( foreignContent.getGenerateBy( ) instanceof TextItemDesign )
		{
			TextItemDesign design = (TextItemDesign) foreignContent
					.getGenerateBy( );
			String text = null;
			HashMap rawValues = null;
			if ( foreignContent.getRawValue( ) instanceof Object[] )
			{
				Object[] rawValue = (Object[]) foreignContent.getRawValue( );
				assert rawValue.length == 2;
				assert rawValue[0] == null || rawValue[0] instanceof String;
				if ( rawValue[0] != null )
				{
					text = (String )rawValue[0];
				}
				if ( rawValue[1] instanceof HashMap )
				{
					rawValues = (HashMap)rawValue[1];
				}
			}
			if ( text == null )
			{
				text = localize( foreignContent, design.getTextKey( ), design.getText( ) );
			}
			
			TextTemplate template = parseTemplate( text );
			String result = executeTemplate( template, rawValues );