Bug 124450 manually reorder report parameters will change their names
steps to reproduce: - create three report parameters, use their default parameter names - move the third one to the head of the list, its name changes from NewParameter2 to NewParameter21 expected behavior: - the list is reordered, and the name of report parameters remains intact. actual bahavior: - the list was reordered, but the name of report parameters changed.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/core/Module.java
IElementDefn defn = module.getDefn( );
		for ( int i = 0; i < defn.getSlotCount( ); i++ )
		{
			ContainerSlot slot = module.getSlot( i );
			if ( slot == null )
				continue;
			for ( int pos = 0; pos < slot.getCount( ); pos++ )
			{
				DesignElement innerElement = slot.getContent( pos );
				buildNameSpaceAndIDMap( module, innerElement );
			}
		}
		return module;
	}
	/**
	 * Builds up the namespace and id-map for the cloned module.
	 * 
	 * @param module
	 *            the cloned module to build
	 * @param element
	 *            the element in the module to add into the namespace and id-map
	 */
	private void buildNameSpaceAndIDMap( Module module, DesignElement element )
	{
		if ( module == null || element == null )
			return;
		assert !( element instanceof Module );
		ElementDefn defn = (ElementDefn) element.getDefn( );
		assert module.getElementByID( element.getID( ) ) == null;