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
}
		return retValue;
	}
	
	private boolean validateSameParent(Object targetObj, Object transferData)
	{
		if ( targetObj == null || transferData == null )
			return false;
		if (transferData instanceof String)
		{
			return true;
		}
		if (!(targetObj instanceof DesignElementHandle))
		{
			return false;
		}
		if ( transferData instanceof StructuredSelection )
		{
			return validateSameParent( targetObj,
					( (StructuredSelection) transferData ).toArray( ) );
		}
		else if ( transferData instanceof Object[] )
		{
			Object[] array = (Object[]) transferData;
			int len = array.length;
			for (int i=0; i<len; i++)
			{
				if (!validateSameParent(targetObj, array[i]))
				{
					return false;