menuManager.appendToGroup( GEFActionConstants.GROUP_COPY, new DeleteAction( selectedElements ) );
	public void buildContextMenu( IMenuManager menuManager )	{		GEFActionConstants.addStandardActionGroups( menuManager );		Object firstSelectedElement = getFirstElement( );		Object selectedElements = getSelectedElement( );		Object multiSelection = getMultiSeletedElement( );		// except for dealing with multi selected elements.		if ( multiSelection == Object.class // report design and slot				// ...				|| multiSelection == DesignElementHandle.class				// report design				|| multiSelection == ReportDesignHandle.class				// saveral report items				|| multiSelection == ReportItemHandle.class				// table and list				|| multiSelection == ListHandle.class )		{			menuManager.appendToGroup( GEFActionConstants.GROUP_UNDO,					getAction( ActionFactory.UNDO.getId( ) ) );			menuManager.appendToGroup( GEFActionConstants.GROUP_UNDO,					getAction( ActionFactory.REDO.getId( ) ) );			IAction action = getAction( ActionFactory.SAVE.getId( ) );			if ( action != null )			{				action.setEnabled( action.isEnabled( ) );				menuManager.appendToGroup( GEFActionConstants.GROUP_SAVE,						action );			}			menuManager.appendToGroup( GEFActionConstants.GROUP_COPY,					new CutAction( selectedElements ) );			menuManager.appendToGroup( GEFActionConstants.GROUP_COPY,					new CopyAction( selectedElements ) );			menuManager.appendToGroup( GEFActionConstants.GROUP_COPY,					new PasteAction( selectedElements ) );			menuManager.appendToGroup( GEFActionConstants.GROUP_COPY,					new DeleteAction( selectedElements ) );			createStyleMenu( menuManager, GEFActionConstants.GROUP_REST );		}		//-----------------------------------------------------------------		else if ( firstSelectedElement instanceof DesignElementHandle )		{			menuManager.appendToGroup( GEFActionConstants.GROUP_UNDO,					getAction( ActionFactory.UNDO.getId( ) ) );			menuManager.appendToGroup( GEFActionConstants.GROUP_UNDO,					getAction( ActionFactory.REDO.getId( ) ) );			IAction action = getAction( ActionFactory.SAVE.getId( ) );			if ( action != null )			{				action.setEnabled( action.isEnabled( ) );				menuManager.appendToGroup( GEFActionConstants.GROUP_SAVE,						action );			}			menuManager.appendToGroup( GEFActionConstants.GROUP_COPY,					new CutAction( selectedElements ) );			menuManager.appendToGroup( GEFActionConstants.GROUP_COPY,					new CopyAction( selectedElements ) );			menuManager.appendToGroup( GEFActionConstants.GROUP_COPY,					new PasteAction( selectedElements ) );			menuManager.appendToGroup( GEFActionConstants.GROUP_COPY,					new DeleteAction( selectedElements ) );			createStyleMenu( menuManager, GEFActionConstants.GROUP_REST );			if ( firstSelectedElement instanceof RowHandle )			{				MenuManager insertMenu = new MenuManager( INSERT_MENU_ITEM_TEXT );				insertMenu.add( getAction( InsertRowAboveAction.ID ) );				insertMenu.add( getAction( InsertRowBelowAction.ID ) );				menuManager.appendToGroup( GEFActionConstants.GROUP_EDIT,						insertMenu );				menuManager.appendToGroup( GEFActionConstants.GROUP_EDIT,						getAction( DeleteRowAction.ID ) );				menuManager.appendToGroup( GEFActionConstants.GROUP_EDIT,						getAction( MergeAction.ID ) );				menuManager.appendToGroup( GEFActionConstants.GROUP_EDIT,						getAction( SplitAction.ID ) );			}			else if ( firstSelectedElement instanceof ColumnHandle )			{				MenuManager subMenu = new MenuManager( INSERT_MENU_ITEM_TEXT );				subMenu.add( getAction( InsertColumnRightAction.ID ) );				subMenu.add( getAction( InsertColumnLeftAction.ID ) );				menuManager.appendToGroup( GEFActionConstants.GROUP_EDIT,						subMenu );				menuManager.appendToGroup( GEFActionConstants.GROUP_EDIT,						getAction( DeleteColumnAction.ID ) );				menuManager.appendToGroup( GEFActionConstants.GROUP_EDIT,						getAction( MergeAction.ID ) );				menuManager.appendToGroup( GEFActionConstants.GROUP_EDIT,						getAction( SplitAction.ID ) );			}			else if ( firstSelectedElement instanceof CellHandle )			{				createInsertElementMenu( menuManager,						GEFActionConstants.GROUP_EDIT );				menuManager.appendToGroup( GEFActionConstants.GROUP_EDIT,						getAction( MergeAction.ID ) );				menuManager.appendToGroup( GEFActionConstants.GROUP_EDIT,						getAction( SplitAction.ID ) );			}			else			{				//			}		}		else if ( firstSelectedElement instanceof SlotHandle )		{			menuManager.appendToGroup( GEFActionConstants.GROUP_UNDO,					getAction( ActionFactory.UNDO.getId( ) ) );			menuManager.appendToGroup( GEFActionConstants.GROUP_UNDO,					getAction( ActionFactory.REDO.getId( ) ) );			IAction action = getAction( ActionFactory.SAVE.getId( ) );			if ( action != null )			{				action.setEnabled( action.isEnabled( ) );				menuManager.appendToGroup( GEFActionConstants.GROUP_SAVE,						action );			}			menuManager.appendToGroup( GEFActionConstants.GROUP_COPY,					new CutAction( selectedElements ) );			menuManager.appendToGroup( GEFActionConstants.GROUP_COPY,					new CopyAction( selectedElements ) );			menuManager.appendToGroup( GEFActionConstants.GROUP_COPY,					new PasteAction( selectedElements ) );			menuManager.appendToGroup( GEFActionConstants.GROUP_COPY,					new DeleteAction( selectedElements ) );			createInsertElementMenu( menuManager, GEFActionConstants.GROUP_EDIT );		}		else		{			//		}		if ( !getTableEditParts( ).isEmpty( ) )		{			menuManager.appendToGroup( GEFActionConstants.GROUP_ADD,					getAction( InsertGroupAction.ID ) );			menuManager.appendToGroup( GEFActionConstants.GROUP_ADD,					getAction( DeleteGroupAction.ID ) );			if ( getTableEditParts( ).size( ) == 1 )			{				createGroupMenu( menuManager, GEFActionConstants.GROUP_ADD );				Separator separator = new Separator( EditBindingAction.ID );				menuManager.add( separator );				menuManager.appendToGroup( EditBindingAction.ID,						getAction( EditBindingAction.ID ) );			}		}		if ( !getListEditParts( ).isEmpty( ) )		{			menuManager.appendToGroup( GEFActionConstants.GROUP_ADD,					getAction( InsertListGroupAction.ID ) );			menuManager.appendToGroup( GEFActionConstants.GROUP_ADD,					getAction( DeleteListGroupAction.ID ) );			if ( getListEditParts( ).size( ) == 1 )			{				createGroupMenu( menuManager, GEFActionConstants.GROUP_ADD );			}		}	}