Bug 213826 The image can not be shown when using event handler to set image [0800]
Description: The image can not be shown when using event handler to set image. Build number: 2.2.2.v20071225-0630 Steps to reproduce: 1. Copy the attached images and report design to the same folder. 2. New a java project and import the attached java file. 3. Preview the attached report design. Expected result: The image is shown. Actual result: The image is not shown when preview. Error log: N/A
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/presentation/LocalizedContentVisitor.java
assert content.getGenerateBy( ) instanceof ExtendedItemDesign;
		IContent generatedContent = content;
		
		ExtendedItemDesign design = (ExtendedItemDesign) content
				.getGenerateBy( );
		ExtendedItemHandle handle = (ExtendedItemHandle) design.getHandle( );
		String tagName = handle.getExtensionName( );
		
		if ( "Chart".equals( tagName ) )
		{
			IHTMLImageHandler imageHandler = context.getImageHandler( );
			if ( imageHandler != null )
			{
				String imageId = getImageCacheID( content );
				CachedImage cachedImage = imageHandler.getCachedImage( imageId,
						IImage.CUSTOM_IMAGE, context.getReportContext( ) );
				if ( cachedImage != null )
				{
					return processCachedImage(content, cachedImage);
				}
			}
		}
		
		IReportItemPresentation itemPresentation = ExtensionManager
				.getInstance( ).createPresentationItem( tagName );
		if ( itemPresentation != null )
		{
			IDataQueryDefinition[] queries = design.getQueries( );
			ReportItemPresentationInfo info = new ReportItemPresentationInfo( );
			info.setModelObject( handle );