Bug 160641 Image from Fragments can not be preview
Details: Image from Fragments can not be preview Step: 1.New an image and select "Image file in BIRT resource folder" 2.Select the image that in Fragments. 3.Preview Actual result: The image can not be preview Excepted result: The image can be preview
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ImageItemExecutor.java
ReportDesignHandle reportDesign = context.getDesign( );
		if ( reportDesign != null )
		{
			URL url = reportDesign.findResource( imageFile,
					IResourceLocator.IMAGE );
			if ( url != null )
			{
				String fileName = url.getFile( );
				if ( fileName != null )
				{
					imageFile = fileName;
				}
			}
		}
		
		
		
		imageContent.setURI( imageFile );
		imageContent.setImageSource( IImageContent.IMAGE_FILE );
		imageContent.setExtension( FileUtil.getExtFromFileName( imageFile ) );
		if ( imageFile == null )
		{
			logger.log( Level.SEVERE,
					"[ImageItemExecutor] Source image file is missing" ); 
			context.addException( design.getHandle( ), new EngineException(
					MessageConstants.MISSING_IMAGE_FILE_ERROR ) );
		}
	}
	
}