Bug 192430 [Acceptance] "Rever to Template Item" is not shown in the top menu "Element" [00]
Description: "Rever to Template Item" is not shown in the top menu Element Build number: 2.2.0.v20070613-1211 Steps to reproduce: 1. New a template add a label. 2. Select the label, create a template item and revert it to report element, save. 3. Select the label, click top menu "Element". Expected result: "Rever to Template Item" is shown. Actual result: Only "Create Template Report Item" and "Revert to Report Item" are shown. Error log: N/A
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/providers/SchematicContextMenuProvider.java
if ( SessionHandleAdapter.getInstance( ).getReportDesignHandle( ) instanceof ReportDesignHandle )
		{
			menu.add( getAction( AddStyleAction.ID ) );
		}
		else if ( SessionHandleAdapter.getInstance( ).getReportDesignHandle( ) instanceof LibraryHandle )
		{
			LibraryHandle libraryHandle = (LibraryHandle) SessionHandleAdapter.getInstance( )
					.getReportDesignHandle( );
			MenuManager subMenu = new MenuManager(NEW_STYLE_MENU_ITEM_TEXT );
			
			SlotHandle themeSlot = libraryHandle.getThemes( );
			for ( Iterator iter = themeSlot.getContents( ).iterator( ); iter.hasNext( ); )
			{
				ThemeHandle theme = (ThemeHandle) iter.next( );
				subMenu.add( new AddThemeStyleAction( theme,
						(AddStyleAction) getAction( AddStyleAction.ID ) ) );
			}
			menu.add( subMenu );
		}
	}
	/**
	 * Creats sub menu in the specified action group of the specified menu
	 * manager.
	 * 
	 * @param menuManager
	 *            The menu manager contains the action group.
	 * @param group_name
	 *            The action group contains the sub menu.
	 */
	private void createThemeMenu( IMenuManager menuManager, String group_name )