Bug 168003 [2.1.2][regression]In library,delete item inside grid should not transfer current view.[01]
Description: [2.1.2][regression]In library,delete item inside grid should not transfer current view.[01] Build: Version 2.1.2.v20061213-0710 steps to reproduce: 1. New a library 2. Insert a grid. 3. Insert items to grid cell. 4. Select one item in grid and press delete Expected result: Focus is on grid for next operation. Actual result: Grid disppeared, focus changed to whole library.
UI/org.eclipse.birt.report.designer.ui.lib/src/org/eclipse/birt/report/designer/internal/lib/editparts/LibraryReportDesignEditPart.java
Boolean direct = (Boolean) request.getExtendedData( ).get( DesignerConstants.DIRECT_CREATEITEM );
						if ( list.size( ) != 0
								&& !( list.get( 0 ) instanceof EmptyEditPart ) 
								&&  (direct == null || 
									 !direct.booleanValue( )))
						{
							return UnexecutableCommand.INSTANCE;
						}
						
						
						CreateCommand command = new CreateCommand( request.getExtendedData( ) ) 
						{
							public void execute( )
							{
								super.execute( );
								Display.getCurrent( )
										.asyncExec( new Runnable( ) {
											public void run( )
											{
												SetCurrentEditModelCommand c = new SetCurrentEditModelCommand( getNewObject(),LibraryHandleAdapter.CREATE_ELEMENT );
												c.execute( );
											}
										} );
							}
						};
						Object model = this.getHost( ).getModel( );
						if ( model instanceof SlotHandle )
						{
							command.setParent( model );
						}