Bug 184568 Insert menu error when switch layout tab[00]
Description: Insert menu error when switch layout tab[00] Step: 1.Open a report 2.Switch Master Page( or other tab ) 3.Switch Layout Page 4.Click insert menu Acutal result: The selection in insert menu is gray Exception result: Can select the selection in insert menu
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/DesignerActionBarContributor.java
elementMenu.add( new Separator( ) );
		contributeStyleMenu( elementMenu );
		elementMenu.addMenuListener( new IMenuListener( ) {
			public void menuAboutToShow( IMenuManager manager )
			{
				IContributionItem addGroupMenu = manager.findUsingPath( AddGroupAction.ID );
				IContributionItem insertGroupMenus = manager.findUsingPath( InsertGroupMenuAction.ID );
				if ( addGroupMenu == null || insertGroupMenus == null )
				{
					return;
				}
				RetargetAction action = (RetargetAction) getAction( AddGroupAction.ID );
				if ( action != null
						&& action.getActionHandler( ) instanceof AddGroupAction )
				{
					if ( action.getActionHandler( ).isEnabled( ) )
					{
						addGroupMenu.setVisible( true );
						insertGroupMenus.setVisible( false );
					}
					else
					{
						addGroupMenu.setVisible( false );
						insertGroupMenus.setVisible( true );
					}
					manager.update( true );
				}
			}
		} );
		menubar.insertAfter( M_INSERT, elementMenu );