Bug 121019 Java based scripting -> TextItemInstance/setText, getText does not work properly
textItemInstance.setText( "Actuate Shanghai" ); System.out.println( textItemInstance.getText( ) ); after executing the codes above, i got "text/template". expected behavior: - Actuate Shanghai actual behavior: - text/template
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/instance/ForeignTextInstance.java
super( content );
	}
	
	protected ForeignTextInstance() {
	}
	/* (non-Javadoc)
	 * @see org.eclipse.birt.report.engine.script.IForeignTextInstance#getText()
	 */
	public String getText( )
	{
		ForeignContent fc = ( ForeignContent ) content;
		String type = fc.getRawType( );
		if ( IForeignContent.TEMPLATE_TYPE.equals( type )
				|| IForeignContent.HTML_TYPE.equals( type )
				|| IForeignContent.TEXT_TYPE.equals( type ) )
		{
			return ( fc.getRawType( ) == null ? null : fc.getRawType( )
					.toString( ) );
		}
		return null;
	}
	/* (non-Javadoc)
	 * @see org.eclipse.birt.report.engine.script.IForeignTextInstance#setText(java.lang.String)
	 */
	public void setText( String value )
	{
		( ( ForeignContent ) content ).setRawValue( value );
	}
}