Bug 118757 Focus is lost when select a value during importing values for parameter
"Description: Focus is lost when select a value during importing values for parameter. Steps to reproduce: 1.Create a parameter.Select type as ""List Box"". 2.Click on ""import values"". 3.Select a value from left pane to right pane. 4.After click on "">>"". 5.Select a value from right pane to left pane 6.After click on "<" Actual result: focus is lost."
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/ImportValueDialog.java
list.setLayoutData( gd );
	}
	private void addSelected( )
	{
		String[] selected = valueList.getSelection( );
		int selectedIndex = valueList.getSelectionIndex( );
		int oldListSize = valueList.getItemCount( );
		if ( selected.length == 0 )
		{
			selected = new String[]{
				valueEditor.getText( )
			};
		}
		for ( int i = 0; i < selected.length; i++ )
		{
			if ( selectedList.indexOf( selected[i] ) == -1 )
			{
				selectedList.add( selected[i] );
			}
		}
		filteValues( );
		if ( selected.length == 1 )
		{
			int nextSelected = ( ( selectedIndex + 1 ) < oldListSize ) ? selectedIndex
					: ( selectedIndex - 1 );
			valueList.select( nextSelected );
		}
		else if ( ( selected.length > 1 ) && ( valueList.getItemCount( ) > 0 ) )
		{
			valueList.select( 0 );