Bug 205593 ClassCastException in excel emitter
Build ID: 2.2.1 Steps To Reproduce: 1. export a design with a dynamic text (Ex: print: "Page "+ pageNumber) in excel format 2. 3. More information: It tries to cast a DynamicTextItemDesign into a DataItemDesign. Thanks Nicolas
engine/org.eclipse.birt.report.engine.emitter.prototype.excel/src/org/eclipse/birt/report/engine/emitter/excel/layout/ExcelLayoutEngine.java
container.setStart( pos );
		containers.push( container );
	}
	public void endContainer( )
	{
		XlsContainer container = getCurrentContainer( );
		
		if ( container.isEmpty( ) )
		{
			Data data = new Data( EMPTY, container.getStyle( ), Data.STRING );
			data.setRule( container.getRule( ) );
			addData( data );
		}
		engine.removeContainerStyle( );
		containers.pop( );
	}
	public void addData( Object txt, IStyle style, HyperlinkDef link )
	{
		Rule rule = getCurrentContainer( ).getRule( );
		StyleEntry entry = engine.getStyle( style, rule );
		Data data = createData(txt, entry);
		data.setHyperlinkDef( link );
		data.setRule( rule );
		addData( data );
	}
	public Data createData( Object txt, StyleEntry entry )
	{
		if ( txt instanceof IDataContent )
		{
			IDataContent dataContent = (IDataContent) txt;