Bug 167545 Copy a cascading parameter group and paste it to another parameter group causes an exception thrown
Steps to reproduce: 1.Copy a cascading parameter group using short cut key "Ctrl+x"/"Ctrl+c", or choosing context menu "Cut"/"Copy"; 2.Paste it to another parameter group using short cut key "Ctrl+v", or choosing context menu "Paste"; Expected result: The source one is pasted in the destination. Actual result: An exception thrown org.eclipse.birt.report.model.api.command.ContentException: The Cascading Parameter Group("Source") is not allowed in the slot (parameters) of Parameter Group("Destination").
UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DEUtil.java
public static int getRGBInt( RGB rgb )
	{
		if ( rgb == null )
		{
			return -1;
		}
		return ( ( rgb.red & 0xff ) << 16 )
				| ( ( rgb.green & 0xff ) << 8 )
				| ( rgb.blue & 0xff );
	}
	/**
	 * Gets the list of data sets which can be used for the specified element
	 * 
	 * @param handle
	 *            the handle of the element
	 * @return Returns the list of data sets which can be used for this element
	 */
	public static List getDataSetList( DesignElementHandle handle )
	{
		List dataSetList = new ArrayList( );
		if ( handle instanceof ReportElementHandle )
		{
			if ( handle instanceof ReportItemHandle )
			{
				DesignElementHandle dataSet = ( (ReportItemHandle) handle ).getDataSet( );
				if ( dataSet != null && !dataSetList.contains( dataSet ) )
				{
					dataSetList.add( dataSet );
				}
			}