Bug 183910 Cross tab can not be reverted to template item after it is reverted to report item [1102]
Description: Cross tab can not be reverted to template item after it is reverted to report item. Build number: 2.2.0.v20070425-0630 Steps to reproduce: 1. New a cross tab. 2. Right click to select the cross tab, choose "Create Template Report Item" to create template item, then revert the cross tab to report item. 3. Right click to select the cross tab. Expected result: The cross tab cna be revert to report item and template item both. Actual result: In the context menu, "Revert To Report Item" and "Revert To Template Item" are grayed out. Error log: N/A
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/TemplateCommand.java
stack.commit( );
	}
	/**
	 * Reverts a report item or data set to a template element. In this method,
	 * create a template element and let the created template element refer the
	 * template parameter definition of the base element.
	 * 
	 * @param base
	 *            the base report item or data set element to be reverted to a
	 *            template element
	 * @param name
	 *            the given name of the created template element
	 * @return the created template element
	 * @throws SemanticException
	 *             if the content can not be revert to a template element,
	 *             current module is not a repor design and can not support
	 *             template elements, base element has no template definition,
	 *             or the replacement fails
	 */
	public TemplateElement revertToTemplate( DesignElement base, String name )
			throws SemanticException
	{
		assert base != null;
		TemplateElement template = TemplateFactory.createTemplate( module,
				base, name );
		
		
		if ( template == null )
			throw new TemplateException(
					base,