Bug 201032 Rename group should display orignal name in input box.[0004]
Description: Rename group should use orignal name as default value in input box. Build number:2.2.1.v200708240630 Steps to reproduce: 1. New a table, add a group. 2. Select the group in Outline, press F2. Expected result: In rename dialog, orignal group name is in input box. Actual result: Input box is empty. Error log:n/a
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/views/actions/RenameAction.java
if ( selectedItem.getData( ) instanceof DesignElementHandle
				|| selectedItem.getData( ) instanceof EmbeddedImageHandle )
		{
			initOriginalName( );
			RenameInputDialog inputDialog = new RenameInputDialog( selectedItem.getParent( )
					.getShell( ),
					Messages.getString( "RenameInputDialog.DialogTitle" ),
					Messages.getString( "RenameInputDialog.DialogMessage" ),
					originalName,
					null );
			inputDialog.create( );
			if ( inputDialog.open( ) == Window.OK )
			{
				saveChanges( inputDialog.getValue( ).trim( ) );
			}
		}
	}
	private void initOriginalName( )
	{
		if ( selectedItem.getData( ) instanceof DesignElementHandle )
		{
			originalName = ( (DesignElementHandle) selectedItem.getData( ) ).getQualifiedName( );
		}
		if ( selectedItem.getData( ) instanceof EmbeddedImageHandle )
		{
			originalName = ( (EmbeddedImageHandle) selectedItem.getData( ) ).getQualifiedName( );
		}
		if ( originalName == null )
		{
			originalName = "";