Community
Participate
Working Groups
If you use a Separator as first item in the Menu, the design still shows the separator. In RCP / RAP without IAD, it is hidden. A use-case for this are the MB_ADDITIONS which often occur as first item in the menu. protected void fillMenuBar( final IMenuManager menuBar ) { MenuManager fileMenu = new MenuManager( "File", IWorkbenchActionConstants.M_FILE ); menuBar.add( fileMenu ); fileMenu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS)); fileMenu.add( importAction ); fileMenu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS)); fileMenu.add( exportAction ); fileMenu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS)); fileMenu.add( exitAction ); }
Created attachment 169351 [details] Fix Checks if the first menuitem is a separator. If it's a separator than it's not added to the menu.
Comment on attachment 169351 [details] Fix the patch looks good for me
Changes are in CVS HEAD. Thanks for reviewing.