Bug 189814 [Regression] "Paste" does not work for report items, data source, data set... [00]
Description: "Paste" does not work for report items, data source, data set... Build number: 2.2.0.v20070530-0630 Steps to reproduce: 1. New a report, insert a label, copy and paste. Expected result: "Paste" works. Actual result: "Paste" does not work. Error log: N/A
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/command/SelectionHandler.java
{
			return InsertInLayoutUtil.editPart2Model( list ).toList( );
		}
		else
		{
			return list;
		}
	}
	/**
	 * Gets element handles.
	 * 
	 * @return element handles
	 */
	protected List getElements( ISelection selection )
	{
		return InsertInLayoutUtil.editPart2Model( selection ).toList( );
	}
	/**
	 * Gets the first selected object.
	 * 
	 * @return The first selected object
	 */
	protected Object getFirstElement( List list )
	{
		Object[] array = getElements( list ).toArray( );
		if ( array.length > 0 )
		{
			return array[0];
		}
		return null;