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/command/NameSpaceRecord.java
{
				ReferenceableElement originalElement = (ReferenceableElement) root
						.resolveElement(
								element.getName( ),
								nameSpaceID,
								element
										.getPropertyDefn( IDesignElementModel.NAME_PROP ) );
				ns.insert( element );
				if ( originalElement != null )
					updateAllElementReferences( originalElement );
			}
			else
			{
				ns.insert( element );
			}
		}
		else
		{
			ns.remove( element );
			if ( element instanceof ReferenceableElement )
				updateAllElementReferences( (ReferenceableElement) element );
		}
	}
	private void updateAllElementReferences( ReferenceableElement referred )
	{
		List clients = referred.getClientList( );
		Iterator iter = clients.iterator( );
		while ( iter.hasNext( ) )
		{
			BackRef ref = (BackRef) iter.next( );