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
{
		ModuleHandle designHandle = SessionHandleAdapter.getInstance( )
				.getReportDesignHandle( );
		CommandStack stack = designHandle.getCommandStack( );
		try
		{
			stack.startTrans( commandName );
			CompoundCommand commands = new CompoundCommand( );
			if ( transferData instanceof StructuredSelection )
			{
				transferData = ( (StructuredSelection) transferData ).toArray( );
			}
			addCommandToCompound( transferData,
					targetObj,
					position,
					commandName,
					commandType,
					commands );
			commands.execute( );
			stack.commit( );
		}
		catch ( Exception e )
		{
			stack.rollbackAll( );
			return false;
		}
		return true;
	}
	protected static void addCommandToCompound( Object transferData,
			Object targetObj, int position, String commandName,