Bug 316695 Refactor data set editor pages' codes[26568]
Build Identifier: 20100610 Refactor data set editor pages' codes[26568]. Reproducible: Always
UI/org.eclipse.birt.report.designer.ui.data/src/org/eclipse/birt/report/designer/data/ui/dataset/DataSetParametersPage.java
&& linkToSalarParameter.isEnabled( )
					&& linkToSalarParameter.getSelectionIndex( ) > 0
					&& !isMatchedParamDataType( );
		}
		/**
		 * Checks whether the linked report parameter's data type matches the
		 * current data set parameter's data type.
		 * 
		 * @return
		 */
		private boolean isMatchedParamDataType( )
		{
			String dataSetParamType = ParameterPageUtil.getTypeName( dataType.getText( ) );
			ScalarParameterHandle scalarParam = ParameterPageUtil.getScalarParameter( linkToSalarParameter.getText( ),
					false );
			if ( dataSetParamType != null && scalarParam != null )
			{
				return dataSetParamType.equalsIgnoreCase( scalarParam.getDataType( ) );
			}
			return true;
		}
		private boolean isUniqueName( )
		{
			DataSetParameter structure = getStructure( getStructureOrHandle( ) );
			Iterator iter = parameters.iterator( );
			if ( iter != null )
			{
				while ( iter.hasNext( ) )
				{
					DataSetParameterHandle handle = (DataSetParameterHandle) iter.next( );