@Test public void getExtensionsViewsTest() { List<? extends MenuItem> extensionsMenuItems = menusHelper.getExtensionsViews(); assertEquals(4, extensionsMenuItems.size()); assertEquals(menusHelper.constants.Plugins(), extensionsMenuItems.get(0).getCaption()); assertEquals(menusHelper.constants.Apps(), extensionsMenuItems.get(1).getCaption()); assertEquals(menusHelper.constants.DataSets(), extensionsMenuItems.get(2).getCaption()); assertEquals(menusHelper.constants.DataSources(), extensionsMenuItems.get(3).getCaption()); }
public List<? extends MenuItem> getExtensionsViews() { final List<MenuItem> result = new ArrayList<>(3); result.add(MenuFactory.newSimpleItem(constants.Plugins()).perspective(PLUGIN_AUTHORING).endMenu().build().getItems().get(0)); result.add(MenuFactory.newSimpleItem(constants.Apps()).perspective(APPS).endMenu().build().getItems().get(0)); result.add(MenuFactory.newSimpleItem(constants.DataSets()).perspective(DATASET_AUTHORING).endMenu().build().getItems().get(0)); result.add(MenuFactory.newSimpleItem(constants.DataSources()).perspective(DATASOURCE_MANAGEMENT).endMenu().build().getItems().get(0)); return result; }
DefaultWorkbenchFeaturesMenusHelper { public List<? extends MenuItem> getExtensionsViews() { final List<MenuItem> result = new ArrayList<>(3); result.add(MenuFactory.newSimpleItem(constants.Plugins()).perspective(PLUGIN_AUTHORING).endMenu().build().getItems().get(0)); result.add(MenuFactory.newSimpleItem(constants.Apps()).perspective(APPS).endMenu().build().getItems().get(0)); result.add(MenuFactory.newSimpleItem(constants.DataSets()).perspective(DATASET_AUTHORING).endMenu().build().getItems().get(0)); result.add(MenuFactory.newSimpleItem(constants.DataSources()).perspective(DATASOURCE_MANAGEMENT).endMenu().build().getItems().get(0)); return result; } }
DefaultWorkbenchFeaturesMenusHelper { public List<? extends MenuItem> getExtensionsViews() { final List<MenuItem> result = new ArrayList<>(3); result.add(MenuFactory.newSimpleItem(constants.Plugins()).perspective(PLUGIN_AUTHORING).endMenu().build().getItems().get(0)); result.add(MenuFactory.newSimpleItem(constants.Apps()).perspective(APPS).endMenu().build().getItems().get(0)); result.add(MenuFactory.newSimpleItem(constants.DataSets()).perspective(DATASET_AUTHORING).endMenu().build().getItems().get(0)); result.add(MenuFactory.newSimpleItem(constants.DataSources()).perspective(DATASOURCE_MANAGEMENT).endMenu().build().getItems().get(0)); return result; } DefaultWorkbenchFeaturesMenusHelper(); @Inject  DefaultWorkbenchFeaturesMenusHelper(SyncBeanManager iocManager,
                                               ActivityManager activityManager,
                                               PerspectiveManager perspectiveManager,
                                               Caller<AuthenticationService> authService,
                                               User identity,
                                               UserMenu userMenu,
                                               UtilityMenuBar utilityMenuBar,
                                               WorkbenchMegaMenuPresenter menuBar,
                                               AboutCommand aboutCommand,
                                               AuthorizationManager authorizationManager,
                                               SessionInfo sessionInfo,
                                               PlaceManager placeManager); }
DefaultWorkbenchFeaturesMenusHelper { public List<? extends MenuItem> getExtensionsViews() { final List<MenuItem> result = new ArrayList<>(3); result.add(MenuFactory.newSimpleItem(constants.Plugins()).perspective(PLUGIN_AUTHORING).endMenu().build().getItems().get(0)); result.add(MenuFactory.newSimpleItem(constants.Apps()).perspective(APPS).endMenu().build().getItems().get(0)); result.add(MenuFactory.newSimpleItem(constants.DataSets()).perspective(DATASET_AUTHORING).endMenu().build().getItems().get(0)); result.add(MenuFactory.newSimpleItem(constants.DataSources()).perspective(DATASOURCE_MANAGEMENT).endMenu().build().getItems().get(0)); return result; } DefaultWorkbenchFeaturesMenusHelper(); @Inject  DefaultWorkbenchFeaturesMenusHelper(SyncBeanManager iocManager,
                                               ActivityManager activityManager,
                                               PerspectiveManager perspectiveManager,
                                               Caller<AuthenticationService> authService,
                                               User identity,
                                               UserMenu userMenu,
                                               UtilityMenuBar utilityMenuBar,
                                               WorkbenchMegaMenuPresenter menuBar,
                                               AboutCommand aboutCommand,
                                               AuthorizationManager authorizationManager,
                                               SessionInfo sessionInfo,
                                               PlaceManager placeManager); List<? extends MenuItem> getHomeViews(); List<MenuItem> getAuthoringViews(); List<? extends MenuItem> getProcessManagementViews(); List<? extends MenuItem> getExtensionsViews(); void addRolesMenuItems(); void addGroupsMenuItems(); void addWorkbenchViewModeSwitcherMenuItem(); void addWorkbenchConfigurationMenuItem(); void addUtilitiesMenuItems(); void addUserMenuItems(); String getDefaultPerspectiveIdentifier(); List<PerspectiveActivity> getPerspectiveActivities(); List<MenuItem> getPerspectivesMenuItems(); List<Menus> getRoles(); List<Menus> getGroups(); TopLevelMenusBuilder<MenuBuilder> buildMenusFromNavTree(NavTree navTree); List<MenuItem> buildMenuItemsFromNavGroup(NavGroup navGroup); PlaceRequest resolvePlaceRequest(String perspectiveId); static native void redirect(String url); }
DefaultWorkbenchFeaturesMenusHelper { public List<? extends MenuItem> getExtensionsViews() { final List<MenuItem> result = new ArrayList<>(3); result.add(MenuFactory.newSimpleItem(constants.Plugins()).perspective(PLUGIN_AUTHORING).endMenu().build().getItems().get(0)); result.add(MenuFactory.newSimpleItem(constants.Apps()).perspective(APPS).endMenu().build().getItems().get(0)); result.add(MenuFactory.newSimpleItem(constants.DataSets()).perspective(DATASET_AUTHORING).endMenu().build().getItems().get(0)); result.add(MenuFactory.newSimpleItem(constants.DataSources()).perspective(DATASOURCE_MANAGEMENT).endMenu().build().getItems().get(0)); return result; } DefaultWorkbenchFeaturesMenusHelper(); @Inject  DefaultWorkbenchFeaturesMenusHelper(SyncBeanManager iocManager,
                                               ActivityManager activityManager,
                                               PerspectiveManager perspectiveManager,
                                               Caller<AuthenticationService> authService,
                                               User identity,
                                               UserMenu userMenu,
                                               UtilityMenuBar utilityMenuBar,
                                               WorkbenchMegaMenuPresenter menuBar,
                                               AboutCommand aboutCommand,
                                               AuthorizationManager authorizationManager,
                                               SessionInfo sessionInfo,
                                               PlaceManager placeManager); List<? extends MenuItem> getHomeViews(); List<MenuItem> getAuthoringViews(); List<? extends MenuItem> getProcessManagementViews(); List<? extends MenuItem> getExtensionsViews(); void addRolesMenuItems(); void addGroupsMenuItems(); void addWorkbenchViewModeSwitcherMenuItem(); void addWorkbenchConfigurationMenuItem(); void addUtilitiesMenuItems(); void addUserMenuItems(); String getDefaultPerspectiveIdentifier(); List<PerspectiveActivity> getPerspectiveActivities(); List<MenuItem> getPerspectivesMenuItems(); List<Menus> getRoles(); List<Menus> getGroups(); TopLevelMenusBuilder<MenuBuilder> buildMenusFromNavTree(NavTree navTree); List<MenuItem> buildMenuItemsFromNavGroup(NavGroup navGroup); PlaceRequest resolvePlaceRequest(String perspectiveId); static native void redirect(String url);  }