Bug 182503 "New Group" does not work in "Outline" View [1101]
Description: "New Group" does not work in "Outline" View. Build number: 2.2.0.v20070416-1013 Steps to reproduce: 1. New a Cube. 2. In "Outline" View, right click "Groups(Dimensions)" node, select "New Group". Expected result: Cube builder pops up and a new group is added. Actual result: Cube builder pops up and no new group is added. Error log: N/A
UI/org.eclipse.birt.report.designer.ui.cubebuilder/src/org/eclipse/birt/report/designer/ui/cubebuilder/provider/CubeSubFolderNodeProvider.java
return cube.getContents( CubeHandle.MEASURE_GROUPS_PROP ).toArray( );
		}
		return new Object[0];
	}
	public void createContextMenu( TreeViewer sourceViewer, Object object,
			IMenuManager menu )
	{
		PropertyHandle property = (PropertyHandle) object;
		String name = property.getPropertyDefn( ).getName( );
		EditCubeAction action = null;
		if ( name.equals( ICubeModel.DIMENSIONS_PROP ) )
		{
			action = new EditCubeAction( property,
					Messages.getString( "CubeModel.group.new" ) );
		}
		else if ( name.equals( ICubeModel.MEASURE_GROUPS_PROP ) )
		{
			action = new EditCubeAction( property,
					Messages.getString( "CubeModel.summaryfield.new" ) );
		}
		if ( action != null )
			menu.add( action );
		super.createContextMenu( sourceViewer, object, menu );
		menu.insertBefore( IWorkbenchActionConstants.MB_ADDITIONS + "-refresh", 
				new ShowPropertyAction( object ) );
		menu.insertAfter( IWorkbenchActionConstants.MB_ADDITIONS + "-refresh", new Separator( ) ); 
		menu.insertAfter( IWorkbenchActionConstants.MB_ADDITIONS + "-refresh", new RefreshAction( sourceViewer ) ); 
	}
}