updateDynamicItems( ApplyStyleMenuAction.ID, 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 ); }
			public void menuAboutToShow( IMenuManager manager )			{				updateDynamicItems( ApplyStyleMenuAction.ID, manager );			}