protected List<? extends MenuItem> getAuthoringViews() { final List<MenuItem> result = new ArrayList<>(1); result.add( MenuFactory.newSimpleItem(constants.Process_Authoring()) .perspective(constants.Authoring()) .endMenu() .build() .getItems() .get(0)); return result; }
@Override protected void setupMenu() { final AbstractWorkbenchPerspectiveActivity defaultPerspective = menusHelper.getDefaultPerspectiveActivity(); final Menus menus = MenuFactory.newTopLevelMenu(constants.Home()) .place(new DefaultPlaceRequest(defaultPerspective.getIdentifier())) .endMenu() .newTopLevelMenu(constants.Authoring()) .withItems(getAuthoringViews()) .endMenu() .newTopLevelMenu(constants.Deploy()) .withItems(getDeploymentViews()) .endMenu() .newTopLevelMenu(constants.Case_Management()) .withItems(getCaseManagementViews()) .endMenu() .newTopLevelMenu(constants.Process_Management()) .withItems(getProcessManagementViews()) .endMenu() .newTopLevelMenu(constants.Work()) .withItems(getWorkViews()) .endMenu() .newTopLevelMenu(constants.Dashboards()) .withItems(getDashboardsViews()) .endMenu() .newTopLevelMenu(constants.Extensions()) .withItems(menusHelper.getExtensionsViews()) .endMenu() .newTopLevelMenu(constants.Experimental()) .withItems(getExperimentalViews()) .endMenu() .newTopLevelCustomMenu(iocManager.lookupBean(SearchMenuBuilder.class).getInstance()) .endMenu() .build(); menuBar.addMenus(menus); menusHelper.addRolesMenuItems(); menusHelper.addGroupsMenuItems(); menusHelper.addWorkbenchConfigurationMenuItem(); menusHelper.addUtilitiesMenuItems(); }