Bug 192347 [acceptance]Theme cannot be deleted[01]
Description: [acceptance]Theme cannot be deleted Build number:2.2.0.v20070613 Steps to reproduce: 1. New a library. 2. New a theme and delete it. Expected result: Theme can be deleted Actual result: Delete key doesn't work and no delete item in context menu. Error log:n/a
UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DNDUtil.java
protected static Command getNewCommand( String commandType,
			Object transferSource, Object newContainer, int position )
			throws SemanticException
	{
		boolean isCut = TYPE_CUT.equals( commandType );
		if ( newContainer instanceof ParameterGroupHandle
				&& ( transferSource instanceof ParameterGroupHandle || DEUtil.isParameterGroup( transferSource ) ) )
		{
			return pasteParameterGroup( commandType,
					transferSource,
					(ParameterGroupHandle) newContainer );
		}
		else if ( transferSource instanceof DesignElementHandle )
		{
			return new PasteCommand( (DesignElementHandle) transferSource,
					newContainer,
					position,
					isCut );
		}
		else if ( transferSource instanceof IDesignElement )
		{
			return new PasteCommand( (IDesignElement) transferSource,
					newContainer,
					position );
		}
		return null;
	}
	protected static Command pasteParameterGroup( String commandType,
			Object childGroup, ParameterGroupHandle targetGroup )
			throws SemanticException