本文整理汇总了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());
}
示例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);
}
示例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);
}
示例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);
}
示例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());
}