Bug 173221 Focus is not on the new added item in library [00]
Description: Focus is not on the new added item in library. Build number: 2.2.0.v20070207-0941 Steps to reproduce: 1. New a Library, right click to add a report item in Layout. Expected result: Focus is on the new added report item. Actual result: Focus is lost. Error log: N/A
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/actions/BaseInsertMenuAction.java
protected Request insertElement( ) throws Exception
	{
		Request request = new Request( IRequestConstants.REQUEST_TYPE_INSERT );
		Map extendsData = new HashMap( );
		extendsData.put( IRequestConstants.REQUEST_KEY_INSERT_SLOT, slotHandle );
		extendsData.put( IRequestConstants.REQUEST_KEY_INSERT_TYPE, insertType );
		extendsData.put( IRequestConstants.REQUEST_KEY_INSERT_POSITION,
				InsertAction.BELOW );
		request.setExtendedData( extendsData );
		if ( ProviderFactory.createProvider( slotHandle.getElementHandle( ) )
				.performRequest( model, request ) )
		{
			return request;
		}
		return null;
	}
	protected void selectElement( final Object element, final boolean edit )
	{
		Display.getCurrent( ).asyncExec( new Runnable( ) {
			public void run( )
			{
				if ( element instanceof ReportItemHandle )
				{
					IWorkbenchPart part = PlatformUI.getWorkbench( )
							.getActiveWorkbenchWindow( )
							.getPartService( )
							.getActivePart( );
					IEditorPart epart = null;
					if ( part instanceof AbstractMultiPageEditor )
					{