Bug 152542 Supports user-specified link of an ODA Data Set Parameter to a BIRT Report Parameter
BIRT 2.1 currently supports a small subset of the ODA parameter metadata (oda.design.ParameterDefinition) specified by a custom ODA designer, by mapping them to a ROM DataSetParam. However, although most attributes defined in an oda parameter design are also supported in BIRT report parameter, their values are not carried over to the report parameter. Thus BIRT users have to manually repeat the parameter attributes when defining a report parameter. This enhancement shall allow users to specify an explicit link from a ROM input Data Set Parameter to a Report Parameter in the Data Set Editor. This way, related attributes already specified in an oda parameter can be automatically applied via a ROM oda DataSetParam to its linked report parameter.
model/org.eclipse.birt.report.model.adapter.oda/src/org/eclipse/birt/report/model/adapter/oda/ReportParameterAdapter.java
* @param dataSetParam
	 *            the Oda data set parameter
	 * @throws SemanticException
	 *             if value in the data set design is invalid
	 */
	public void updateLinkedReportParameter( ScalarParameterHandle reportParam,
			OdaDataSetParameterHandle dataSetParam ) throws SemanticException
	{
		if ( reportParam == null || dataSetParam == null )
			return;
		updateLinkedReportParameterFromROMParameter( reportParam, dataSetParam );
	}
	/**
	 * Returns the matched ODA data set parameter by the given ROM data set
	 * parameter and data set design.
	 * 
	 * @param param
	 *            the ROM data set parameter
	 * @param dataSetDesign
	 *            the oda data set design
	 * @return the matched ODA parameter defintion
	 */
	private static ParameterDefinition getValidParameterDefinition(
			OdaDataSetParameterHandle param, DataSetParameters odaParams )
	{
		if ( param == null || odaParams == null )
			return null;
		if ( odaParams.getParameterDefinitions( ).isEmpty( ) )
			return null;
		ParameterDefinition matchedParam = DataSetParameterAdapter