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
|| ( parameter.isInput( ) == false && parameter.isOutput( ) == false ) )
		{
			parameter.setIsInput( true );
		}
		if ( paramFromDataSet.getName( ) == null
				|| paramFromDataSet.getName( ).trim( ).length( ) == 0 )
			parameter.setName( getUniqueName( ) );
		else
			parameter.setName( paramFromDataSet.getName( ) );
		parameter.setPosition( new Integer( paramFromDataSet.getPosition( ) ) );
		return parameter;
	}
	/**
	 * whether the param1 is same with param2
	 * 
	 * @param param1
	 * @param param2
	 * @return
	 */
	private boolean isSameParameters( DataSetParameter param1,
			DataSetParameter param2 )
	{
		boolean isSame = false;
		if ( param1 == param2 )
			isSame = true;
		else if ( param1 == null || param2 == null )
			isSame = false;
		else if ( param1.getParameterDataType( )
				.equals( param2.getParameterDataType( ) )
				&& ( param1.isInput( ) == param2.isInput( ) )