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
&& ( param1.isOutput( ) == param2.isOutput( ) ) )
			isSame = true;
		return isSame;
	}
	private void updateParams2UniqueName( List parameters )
	{
		List existedNames = collectParameterNames( parameters );
		List newNames = new ArrayList( );
		for ( int i = 0; i < parameters.size( ); i++ )
		{
			DataSetParameter param = (DataSetParameter) parameters.get( i );
			String name = param.getName( );
			if ( newNames.contains( name ) )
			{
				String prefix = name + RENAME_SEPARATOR;
				int n = 1;
				while ( true )
				{
					name = prefix + n;
					if ( !existedNames.contains( name )
							&& !newNames.contains( name ) )
						break;
					n++;
				}
				param.setName( name );
			}
			newNames.add( name );
		}
	}
	private static List collectParameterNames( List parameters )