Bug 211515 Add Aggregation to Insert context menu
In Report designer right click on a blank area in the layout and select "Insert". The list of report items does not include "Aggregation", which is only available through the Palette view. The user should be able to use the Insert context menu to add an aggregation. The list of available items under Insert submenu needs to be consistent with available items in the Palette view. Another minor issue: the order of items in the Palette view (Label, Text, Dynamic Text, ...) is not the same as the items in the Insert context menu (Text, Label, Data, ...). It will be easier for the user to locate stuff if we keep the ordering consistent.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/providers/SchematicContextMenuProvider.java
private void populateAddStyleAction( MenuManager menu )
	{
		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.