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
epart = ( (AbstractMultiPageEditor) part ).getActivePageInstance( );
					}
					else if ( part instanceof IReportEditor )
					{
						IEditorPart activeEditor = ( (IReportEditor) part ).getEditorPart( );
						if ( activeEditor instanceof AbstractMultiPageEditor )
						{
							epart = ( (AbstractMultiPageEditor) activeEditor ).getActivePageInstance( );
						}
					}
					if ( epart instanceof GraphicalEditorWithFlyoutPalette )
					{
						GraphicalViewer viewer = ( (GraphicalEditorWithFlyoutPalette) epart ).getGraphicalViewer( );
						Object cpart = viewer.getEditPartRegistry( )
								.get( element );
						if ( cpart instanceof EditPart )
						{
							viewer.flush( );
							viewer.select( (EditPart) cpart );
						}
						if ( edit && cpart instanceof LabelEditPart )
						{
							( (LabelEditPart) cpart ).performDirectEdit( );
						}
						else if ( edit && cpart instanceof ImageEditPart )
						{
							( (ImageEditPart) cpart ).performDirectEdit( );
						}