Bug 192355 [acceptance]Fail to drag xtab from Palette to Outline in Library.[01]
Description: Fail to drag xtab from Palette to Outline in Library. Build number:2.2.0.v20070613 Steps to reproduce: 1. New a library file. 2. Drag crosstab from Palette to Outline->Report Items. Expected result: Crosstab can be dragged to outline as other items do. Actual result: Step2 is forbidden in UI. Error log:n/a
xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/CreateCrosstabHandler.java
Map map = new HashMap( );
			map.put( DesignerConstants.KEY_NEWOBJECT, handle );
			CreateCommand command = new CreateCommand( map );
			try
			{
				if ( parentModel instanceof DesignElementHandle )
				{
					DesignElementHandle parentHandle = (DesignElementHandle) parentModel;
					if ( parentHandle.getDefn( ).isContainer( )
							&& ( parentHandle.canContain( DEUtil.getDefaultSlotID( parentHandle ),
									handle ) || parentHandle.canContain( DEUtil.getDefaultContentName( parentHandle ),
									handle ) ) )
					{
						command.setParent( parentHandle );
					}
					else
					{
						if ( parentHandle.getContainerSlotHandle( ) != null )
						{
							command.setAfter( parentHandle.getContainerSlotHandle( )
									.get( parentHandle.getIndex( ) + 1 ) );
						}
						else if ( parentHandle.getContainerPropertyHandle( ) != null )
						{
							command.setAfter( parentHandle.getContainerPropertyHandle( )
									.get( parentHandle.getIndex( ) + 1 ) );
						}
						command.setParent( parentHandle.getContainer( ) );
					}
				}