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/TextItemInstance.java
{
	public TextItemInstance( TextContent content )
	{
		setContent( content );
	}
	public TextItemInstance( ForeignContent content )
	{
		super( content );
	}
	/* (non-Javadoc)
	 * @see org.eclipse.birt.report.engine.api.script.instance.ITextItemInstance#getText()
	 */
	public String getText( )
	{
		if ( content instanceof TextContent )
			return ( ( TextContent ) content ).getText( );
		return super.getText( );
	}
	/* (non-Javadoc)
	 * @see org.eclipse.birt.report.engine.api.script.instance.ITextItemInstance#setText(java.lang.String)
	 */
	public void setText( String value )
	{
		if ( content instanceof TextContent )
			( ( TextContent ) content ).setText( value );
		else
			super.setText( value );
	}
}