Bug 179688 Dimension should not be able to be deleted through Context Menu [1102]
Description: Dimension should not be able to be deleted through Context Menu. Build number: 2.2.0.v20070328-0630 Steps to reproduce: 1. New a Cross tab, drag Group to column. 2. Select the Group and right click to choose "Delete" in the context menu. Expected result: Dimension should not be able to be deleted through Context Menu. Actual result: Dimension can be deleted through Context Menu. Error log: N/A
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/providers/SchematicContextMenuProvider.java
/**
	 * Gets the current selection.
	 * 
	 * @return The current selection
	 */
	protected ISelection getSelection( )
	{
		return getViewer( ).getSelection( );
	}
	/**
	 * Returns a <code>List</code> containing the currently selected objects.
	 * 
	 * @return A List containing the currently selected objects
	 */
	protected List getSelectedObjects( )
	{
		if ( !( getSelection( ) instanceof IStructuredSelection ) )
			return Collections.EMPTY_LIST;
		return ( (IStructuredSelection) getSelection( ) ).toList( );
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.gef.ContextMenuProvider#buildContextMenu(org.eclipse.jface.action.IMenuManager)
	 */
	public void buildContextMenu( IMenuManager menuManager )
	{
		GEFActionConstants.addStandardActionGroups( menuManager );
		Object firstSelectedElement = getFirstElement( );
		Object selectedElements = getSelectedElement( );