Bug 146550 Could not insert JPG image to report layout
Description: Could not insert a image whose suffix is JPG(capital) to report layout. Steps to reproduce: 1.Insert a image whose suffix is JPG to report layout, the error message is "The file you selected is not an image.". 2.While when you change the suffix to jpg, it is ok. Expect result: Insert a JPG image correctly.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ImageBuilder.java
stack.rollback( );
		}
	}
	private java.util.List unionDataSets( )
	{
		dataSetList = new ArrayList( inputDataSetList );
		if ( inputImage == null || inputImage.getDataSet( ) == null )
		{
			return dataSetList;
		}
		int i = inputDataSetList.indexOf( inputImage.getDataSet( ) );
		if ( i == -1 )
		{
			dataSetList.add( inputImage.getDataSet( ) );
		}
		return dataSetList;
	}
	private boolean checkExtensions( String fileName )
	{
		for ( int i = 0; i < IMAGE_TYPES.length; i++ )
		{
			if ( fileName.endsWith( IMAGE_TYPES[i] ) )
			{
				return true;
			}
		}
		return false;
	}
	
}