当前位置: 首页>>代码示例>>Java>>正文


Java NavigationManagerImpl类代码示例

本文整理汇总了Java中org.dashbuilder.client.navigation.impl.NavigationManagerImpl的典型用法代码示例。如果您正苦于以下问题:Java NavigationManagerImpl类的具体用法?Java NavigationManagerImpl怎么用?Java NavigationManagerImpl使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


NavigationManagerImpl类属于org.dashbuilder.client.navigation.impl包,在下文中一共展示了NavigationManagerImpl类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setUp

import org.dashbuilder.client.navigation.impl.NavigationManagerImpl; //导入依赖的package包/类
@Before
public void setUp() {
    navigationManager = new NavigationManagerImpl(new CallerMock<>(navServices), navController,
            navTreeLoadedEvent, navTreeChangedEvent, navItemGotoEvent);

    navTreeEditor = spy(new NavTreeEditor(view, navigationManager, beanManager,
            placeManager, perspectiveTreeProvider, targetPerspectiveEditor,
            perspectivePluginManager, navItemEditStartedEvent, navItemEditCancelledEvent));

    navTreeEditor.setChildEditorClass(NavRootNodeEditor.class);

    navItemEditor = spy(new NavItemDefaultEditor(navItemEditorView, beanManager, placeManager,
            perspectiveTreeProvider, targetPerspectiveEditor, perspectivePluginManager,
            navItemEditStartedEvent, navItemEditCancelledEvent));

    navRootNodeEditor = spy(new NavRootNodeEditor(navRootNodeEditorView, beanManager, placeManager,
            perspectiveTreeProvider, targetPerspectiveEditor, perspectivePluginManager,
            navItemEditStartedEvent, navItemEditCancelledEvent));

    when(beanManager.lookupBean(NavItemDefaultEditor.class)).thenReturn(navItemEditorBeanDef);
    when(beanManager.lookupBean(NavRootNodeEditor.class)).thenReturn(navRootNodeEditorBeanDef);
    when(navItemEditorBeanDef.newInstance()).thenReturn(navItemEditor);
    when(navRootNodeEditorBeanDef.newInstance()).thenReturn(navRootNodeEditor);

    when(navItemEditorView.getItemName()).thenReturn("editor1");
    when(navRootNodeEditorView.getItemName()).thenReturn("editor2");

    perspectivePlugins.add(perspectivePlugin);
    doAnswer(invocationOnMock -> {
        ParameterizedCommand callback = (ParameterizedCommand) invocationOnMock.getArguments()[0];
        callback.execute(perspectivePlugins);
        return null;
    }).when(perspectivePluginManager).getPerspectivePlugins(any());
}
 
开发者ID:dashbuilder,项目名称:dashbuilder,代码行数:35,代码来源:NavTreeEditorTest.java

示例2: setup

import org.dashbuilder.client.navigation.impl.NavigationManagerImpl; //导入依赖的package包/类
@Before
public void setup() {
    navTreeDefinitions = new NavTreeDefinitions();
    navigationManager = new NavigationManagerImpl(new CallerMock<>(navigationServices),
            null, navTreeLoadedEvent, null, null);

    doAnswer(invocationOnMock -> {
        ((Command) invocationOnMock.getArguments()[0]).execute();
        return null;
    }).when(userSystemManager).waitForInitialization(any(Command.class));

    doReturn(mock(MenuFactory.TopLevelMenusBuilder.class)).when(menusHelper).buildMenusFromNavTree(any());

    CallerMock<AppConfigService> appConfigServiceCallerMock = new CallerMock<>(appConfigService);

    kieWorkbenchEntryPoint = spy(new KieDroolsWorkbenchEntryPoint(appConfigServiceCallerMock,
                                                                  activityBeansCache,
                                                                  menusHelper,
                                                                  userSystemManager,
                                                                  menuBar,
                                                                  workbench,
                                                                  permissionTreeSetup,
                                                                  perspectiveTreeProvider,
                                                                  adminPageHelper,
                                                                  navTreeDefinitions,
                                                                  navigationManager,
                                                                  navigationExplorerScreen));

    doNothing().when(kieWorkbenchEntryPoint).hideLoadingPopup();

    navTreeEditor = spy(new NavTreeEditor(mock(NavTreeEditorView.class), null, syncBeanManager, null, perspectiveTreeProvider, targetPerspectiveEditor, null, null, null, null));
    when(navigationExplorerScreen.getNavTreeEditor()).thenReturn(navTreeEditor);
}
 
开发者ID:kiegroup,项目名称:kie-wb-distributions,代码行数:34,代码来源:KieDroolsWorkbenchEntryPointTest.java

示例3: setup

import org.dashbuilder.client.navigation.impl.NavigationManagerImpl; //导入依赖的package包/类
@Before
public void setup() {
    navTreeDefinitions = new NavTreeDefinitions();
    navigationManager = new NavigationManagerImpl(new CallerMock<>(navigationServices),
                                                  null,
                                                  navTreeLoadedEvent,
                                                  null,
                                                  null);

    doAnswer(invocationOnMock -> {
        ((Command) invocationOnMock.getArguments()[0]).execute();
        return null;
    }).when(userSystemManager).waitForInitialization(any(Command.class));

    doReturn(mock(MenuFactory.TopLevelMenusBuilder.class)).when(menusHelper).buildMenusFromNavTree(any());

    CallerMock<AppConfigService> appConfigServiceCallerMock = new CallerMock<>(appConfigService);

    kieWorkbenchEntryPoint = spy(new KieWorkbenchEntryPoint(appConfigServiceCallerMock,
                                                            activityBeansCache,
                                                            menusHelper,
                                                            userSystemManager,
                                                            menuBar,
                                                            workbench,
                                                            permissionTreeSetup,
                                                            adminPageHelper,
                                                            navTreeDefinitions,
                                                            navigationManager,
            navigationExplorerScreen));

    doNothing().when(kieWorkbenchEntryPoint).hideLoadingPopup();
    when(navigationExplorerScreen.getNavTreeEditor()).thenReturn(navTreeEditor);
}
 
开发者ID:kiegroup,项目名称:kie-wb-distributions,代码行数:34,代码来源:KieWorkbenchEntryPointTest.java

示例4: setup

import org.dashbuilder.client.navigation.impl.NavigationManagerImpl; //导入依赖的package包/类
@Before
public void setup() {
    navTreeDefinitions = new NavTreeDefinitions();
    navigationManager = new NavigationManagerImpl(new CallerMock<>(navigationServices),
                                                  null,
                                                  navTreeLoadedEvent,
                                                  null,
                                                  null);

    doAnswer(invocationOnMock -> {
        ((Command) invocationOnMock.getArguments()[0]).execute();
        return null;
    }).when(userSystemManager).waitForInitialization(any(Command.class));

    doReturn(mock(MenuFactory.TopLevelMenusBuilder.class)).when(menusHelper).buildMenusFromNavTree(any());

    CallerMock<AppConfigService> appConfigServiceCallerMock = new CallerMock<>(appConfigService);

    kieWorkbenchEntryPoint = spy(new KieWorkbenchEntryPoint(appConfigServiceCallerMock,
                                                            activityBeansCache,
                                                            menusHelper,
                                                            userSystemManager,
                                                            menuBar,
                                                            workbench,
                                                            permissionTreeSetup,
                                                            adminPageHelper,
                                                            navTreeDefinitions,
                                                            navigationManager,
                                                            navigationExplorerScreen));

    doNothing().when(kieWorkbenchEntryPoint).hideLoadingPopup();

    navTreeEditor = spy(new NavTreeEditor(mock(NavTreeEditorView.class), null, syncBeanManager, null,
            perspectiveTreeProvider, targetPerspectiveEditor, null, null, null, null));

    when(navigationExplorerScreen.getNavTreeEditor()).thenReturn(navTreeEditor);
}
 
开发者ID:kiegroup,项目名称:kie-wb-distributions,代码行数:38,代码来源:KieWorkbenchEntryPointTest.java

示例5: setUp

import org.dashbuilder.client.navigation.impl.NavigationManagerImpl; //导入依赖的package包/类
@Before
public void setUp() {
    navigationManager = spy(new NavigationManagerImpl(new CallerMock<>(navServices),
                                                      navController,
                                                      navTreeLoadedEvent,
                                                      navTreeChangedEvent,
                                                      navItemGotoEvent));

    navTreeEditor = spy(new NavTreeEditor(view,
                                          navigationManager,
                                          beanManager,
                                          placeManager,
                                          perspectiveTreeProvider,
                                          targetPerspectiveEditor,
                                          perspectivePluginManager,
                                          navItemEditStartedEvent,
                                          navItemEditCancelledEvent,
                                          loadingBox));

    navTreeEditor.setChildEditorClass(NavRootNodeEditor.class);

    navItemEditor = spy(new NavItemDefaultEditor(navItemEditorView, beanManager, placeManager,
                                                 perspectiveTreeProvider, targetPerspectiveEditor, perspectivePluginManager,
                                                 navItemEditStartedEvent, navItemEditCancelledEvent));

    navRootNodeEditor = spy(new NavRootNodeEditor(navRootNodeEditorView, beanManager, placeManager,
                                                  perspectiveTreeProvider, targetPerspectiveEditor, perspectivePluginManager,
                                                  navItemEditStartedEvent, navItemEditCancelledEvent));

    when(beanManager.lookupBean(NavItemDefaultEditor.class)).thenReturn(navItemEditorBeanDef);
    when(beanManager.lookupBean(NavRootNodeEditor.class)).thenReturn(navRootNodeEditorBeanDef);
    when(navItemEditorBeanDef.newInstance()).thenReturn(navItemEditor);
    when(navRootNodeEditorBeanDef.newInstance()).thenReturn(navRootNodeEditor);

    when(navItemEditorView.getItemName()).thenReturn("editor1");
    when(navRootNodeEditorView.getItemName()).thenReturn("editor2");

    perspectivePlugins.add(perspectivePlugin);
    doAnswer(invocationOnMock -> {
        ParameterizedCommand callback = (ParameterizedCommand) invocationOnMock.getArguments()[0];
        callback.execute(perspectivePlugins);
        return null;
    }).when(perspectivePluginManager).getPerspectivePlugins(any());
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:45,代码来源:NavTreeEditorTest.java


注:本文中的org.dashbuilder.client.navigation.impl.NavigationManagerImpl类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。