Bug 172643 Image in target report cannot display after drill through link.[04]
Description: Image in target report cannot display after drill through link. Build number:2.1.2.v20070202 Steps to reproduce: 1. New a folder inside project "scripting" 2. Copy attached report and image to scripting folder. 3. Preview the report and click the second image. Expected result: Open itself in a new window and display two images. Actual result: The first image cannot display. Error log:N/A
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ViewerHTMLActionHandler.java
}
	/**
	 * Gets the effective report path.
	 * 
	 * @param context
	 * @param action
	 * @return the effective report path
	 */
	private String getReportName( IReportContext context, IAction action )
	{
		assert context != null;
		assert action != null;
		String reportName = action.getReportName( );
		IReportRunnable runnable = context.getReportRunnable( );
		if ( runnable != null )
		{
			ModuleHandle moduleHandle = runnable.getDesignHandle( )
					.getModuleHandle( );
			URL url = moduleHandle.findResource( reportName, -1 );
			if ( url != null )
			{
				if ( "file".equals( url.getProtocol( ) ) ) 
					reportName = url.getFile( );
				else
					reportName = url.toExternalForm( );
			}
		}
		return reportName;
	}
}