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
return new DesignElementFactory( SessionHandleAdapter.getInstance( )
				.getReportDesignHandle( ) );
	}
	public static DesignElementFactory getInstance( ModuleHandle module )
	{
		return new DesignElementFactory( module );
	}
	/**
	 * constructor
	 * 
	 * @param module
	 */
	protected DesignElementFactory( ModuleHandle module )
	{
		super( module.getModule( ) );
		factory = new ElementFactory( module.getModule( ) );
	}
	/**
	 * Creates a design element specified by the element type name. Element type
	 * names are defined in rom.def or extension elements. They are managed by
	 * the meta-data system.
	 * 
	 * @param elementTypeName
	 *            the element type name
	 * @param name
	 *            the optional element name
	 * 
	 * @return design element, <code>null</code> returned if the element
	 *         definition name is not a valid element type name.
	 */