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/ElementUtil.java
if ( element == null )
			return null;
		if ( element instanceof ReportDesignHandle )
			return new ReportDesign( ( ReportDesignHandle ) element );
		if ( !( element instanceof ReportElementHandle ) )
			return null;
		if ( element instanceof CellHandle )
			return new Cell( ( CellHandle ) element );
		if ( element instanceof DataItemHandle )
			return new DataItem( ( DataItemHandle ) element );
		if ( element instanceof GridHandle )
			return new Grid( ( GridHandle ) element );
		if ( element instanceof ImageHandle )
			return new Image( ( ImageHandle ) element );
		if ( element instanceof LabelHandle )
			return new Label( ( LabelHandle ) element );
		if ( element instanceof ListHandle )
			return new List( ( ListHandle ) element );
		if ( element instanceof RowHandle )
			return new Row( ( RowHandle ) element );
		if ( element instanceof TableHandle )
			return new Table( ( TableHandle ) element );
		if ( element instanceof TextDataHandle )
			return new DynamicText( ( TextDataHandle ) element );
		if ( element instanceof TextItemHandle )
			return new TextItem( ( TextItemHandle ) element );
		return new ReportElement( ( ReportElementHandle ) element );
	}
}