Bug 181570 Cube should be able to copy, paste and cut [1101]
Description: Cube should be able to copy, paste and cut. Build number: 2.2.0.v20070409-0630 Steps to reproduce: 1. New a Cube. 2. Select Cube, Copy, Pase, Cut should be able use. Expected result: Copy, paste and cut can be used. Actual result: Cube can not be copy paste or cut. Error log: N/A
UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DNDUtil.java
if ( child.getContainerSlotHandle( ) == handles[i] )
					{
						return true;
					}
				}
			}
		}
		return false;
	}
	/**
	 * Gets the position after the sibling in the container
	 * 
	 * @param targetObj
	 *            container or sibling
	 * @param canContain
	 *            <code>CONTAIN_PARENT</code> as sibling, others as container
	 * @return the position: after the sibling in the same container, or -1 as
	 *         the last position in the container
	 */
	public static int calculateNextPosition( Object targetObj, int canContain )
	{
		int position = -1;
		if ( canContain == CONTAIN_PARENT )
		{
			DesignElementHandle afterHandle = getDesignElementHandle( targetObj );
			if ( afterHandle != null )
			{
				position = afterHandle.getContainerSlotHandle( )
						.findPosn( afterHandle );