Bug 189751 cube enhancement: Groups and Summaries category; an empty summary field is being created.
Based on bug Id# 187412: Cube builder enhancement While reviewing the cube builder enhancements, I found some things that are not updated as the mock up. Please see the attached document. Under Groups and summaries category: 1. If new a cube, under 'groups and Summaries' category, by default an empty summary field is being created. No empty groups and summaries should be there to start with. Make it consistent as 'Groups (dimension): no empty group is there. 2. The category title should repeats itself as Groups and Summaries 3. Primary Dataset has to be listed as (Primary)
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/ElementFactory.java
*            the required extension name
	 * @param parent
	 *            a given parent element.
	 * @return a handle to extended item, return <code>null</code> if the
	 *         definition with the given extension name is not found
	 * @throws ExtendsException
	 */
	private ExtendedItemHandle newExtendedItem( String name,
			String extensionName, ExtendedItemHandle parent )
			throws ExtendsException
	{
		MetaDataDictionary dd = MetaDataDictionary.getInstance( );
		ExtensionElementDefn extDefn = (ExtensionElementDefn) dd
				.getExtension( extensionName );
		if ( extDefn == null )
			return null;
		if ( parent != null )
			assert ( (ExtendedItem) parent.getElement( ) ).getExtDefn( ) == extDefn;
		if ( !( extDefn instanceof PeerExtensionElementDefn ) )
			throw new IllegalOperationException(
					"Only report item extension can be created through this method." ); 
		ExtendedItem element = new ExtendedItem( name );
		
		element.setProperty( IExtendedItemModel.EXTENSION_NAME_PROP,
				extensionName );
		if ( parent != null )
		{
			element.getHandle( module ).setExtends( parent );
		}
		module.makeUniqueName( element );