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
UI/org.eclipse.birt.report.designer.ui.lib/src/org/eclipse/birt/report/designer/internal/lib/views/outline/dnd/LibraryDropListener.java
if ( isSupportPalletType( target, transfer ) )
		{
			AbstractToolHandleExtends pre = BasePaletteFactory.getAbstractToolHandleExtendsFromPaletteName(transfer);
			ReportCreationTool tool = new ReportCreationTool(
					new ReportElementFactory(
							transfer ), pre );
			
			final EditDomain domain = UIUtil.getLayoutEditPartViewer( )
					.getEditDomain( );
			tool.setEditDomain( domain );
			tool.setViewer( UIUtil.getLayoutEditPartViewer( ) );
			tool.getTargetRequest( ).getExtendedData( ).put( DesignerConstants.DIRECT_CREATEITEM, new Boolean(true));
			tool.performCreation( getLibrartReportEditPart( ));
			SetCurrentEditModelCommand command = new SetCurrentEditModelCommand(tool.getNewObjectFromRequest(),LibraryHandleAdapter.CREATE_ELEMENT);
			command.execute();
			return true;
		}
		return super.moveData( transfer, target );
	}
	
	private EditPart getLibrartReportEditPart()
	{
		EditPart retValue = UIUtil.getCurrentEditPart( );
		while (retValue != null && !(retValue instanceof LibraryReportDesignEditPart))
		{
			retValue = retValue.getParent( );
		}
		return retValue;
	}
}