< prev index next >
application/org.openjdk.jmc.rcp.application/src/main/java/org/openjdk/jmc/rcp/application/ApplicationActionBarAdvisor.java
Print this page
*** 251,263 ****
menu.add(ActionFactory.EXPORT.create(window));
menu.add(ActionFactory.IMPORT.create(window));
menu.add(new GroupMarker(IWorkbenchActionConstants.IMPORT_EXT));
menu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
! // these three lines create the list of "recent" files
! menu.add(ContributionItemFactory.REOPEN_EDITORS.create(window));
! menu.add(new GroupMarker(IWorkbenchActionConstants.MRU));
menu.add(new Separator());
menu.add(getAction(ActionFactory.QUIT.getId()));
menu.add(new GroupMarker(IWorkbenchActionConstants.FILE_END));
return menu;
--- 251,270 ----
menu.add(ActionFactory.EXPORT.create(window));
menu.add(ActionFactory.IMPORT.create(window));
menu.add(new GroupMarker(IWorkbenchActionConstants.IMPORT_EXT));
menu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
! // this is where OPEN_CONNECTION is placed via plugin.xml from org.openjdk.jmc.browser
! menu.add(new Separator());
!
! // create a submenu for the list of Recent Files
! String recentText = Messages.ApplicationActionBarAdvisor_MENU_RECENT_FILES_TEXT;
! String recentId = ContributionItemFactory.REOPEN_EDITORS.getId();
! MenuManager recentMenu = new MenuManager(recentText, recentId);
! recentMenu.add(ContributionItemFactory.REOPEN_EDITORS.create(window));
! recentMenu.add(new GroupMarker(IWorkbenchActionConstants.MRU));
! menu.add(recentMenu);
menu.add(new Separator());
menu.add(getAction(ActionFactory.QUIT.getId()));
menu.add(new GroupMarker(IWorkbenchActionConstants.FILE_END));
return menu;
< prev index next >