Sample Code
1 2 3 4 5 6 7 8 9 10 | @Override protected void fillMenuBar ( IMenuManager menuBar) { MenuManager fileMenu = new MenuManager("&File", "pe.dorbae.rcp.sample.file"); menuBar.add( fileMenu); fileMenu.add( ContributionItemFactory.REOPEN_EDITORS.create( this.mWindow)); fileMenu.add( new Separator()); // Using plugin.xml } |
No comments:
Post a Comment