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.ui/src/org/eclipse/birt/report/designer/ui/newelement/DesignElementFactory.java
private String getNewName( String elementTypeName, String name )
	{
		if ( name == null )
		{
			name = ReportPlugin.getDefault( ).getCustomName( elementTypeName );
		}
		return name;
	}
	public DesignElementHandle newElement( String elementTypeName, String name )
	{
		String newName = getNewName( elementTypeName, name );
		return factory.newElement( elementTypeName, newName );
	}
	/**
	 * Creates a new free-form item.
	 * 
	 * @param name
	 *            the optional free-form name. Can be <code>null</code>.
	 * @return a handle to the free-form
	 */
	public FreeFormHandle newFreeForm( String name )
	{
		String newName = getNewName( ReportDesignConstants.FREE_FORM_ITEM, name );
		return factory.newFreeForm( newName );
	}
	/**
	 * Creates a new data item.
	 * 
	 * @param name
	 *            the optional data item name. Can be <code>null</code>.