@Test public void testInitTreeAlreadySet() { when(navigationManager.getNavTree()).thenReturn(navTree); contentExplorerScreen.init(); verify(view).show(perspectivesExplorer, navTreeEditor); verify(navTreeEditor).edit(navTree); }
@PostConstruct void init() { perspectiveExplorer.setOnExpandCommand(this::onPerspectivesExpanded); perspectiveExplorer.show(); navTreeEditor.setOnExpandCommand(this::onNavTreeExpanded); navTreeEditor.setOnSaveCommand(this::onNavTreeSaved); navTreeEditor.getSettings().setLiteralPerspective(i18n.capitalizeFirst(i18n.getPerspectiveResourceName())); navTreeEditor.getSettings().setGotoPerspectiveEnabled(true); if (navTreeEditor.getNavTree() == null && navigationManager.getNavTree() != null) { navTreeEditor.edit(navigationManager.getNavTree()); } view.show(perspectiveExplorer, navTreeEditor); }
ContentExplorerScreen { @PostConstruct void init() { perspectiveExplorer.setOnExpandCommand(this::onPerspectivesExpanded); perspectiveExplorer.show(); navTreeEditor.setOnExpandCommand(this::onNavTreeExpanded); navTreeEditor.setOnSaveCommand(this::onNavTreeSaved); navTreeEditor.getSettings().setLiteralPerspective(i18n.capitalizeFirst(i18n.getPerspectiveResourceName())); navTreeEditor.getSettings().setGotoPerspectiveEnabled(true); if (navTreeEditor.getNavTree() == null && navigationManager.getNavTree() != null) { navTreeEditor.edit(navigationManager.getNavTree()); } view.show(perspectiveExplorer, navTreeEditor); } }
ContentExplorerScreen { @PostConstruct void init() { perspectiveExplorer.setOnExpandCommand(this::onPerspectivesExpanded); perspectiveExplorer.show(); navTreeEditor.setOnExpandCommand(this::onNavTreeExpanded); navTreeEditor.setOnSaveCommand(this::onNavTreeSaved); navTreeEditor.getSettings().setLiteralPerspective(i18n.capitalizeFirst(i18n.getPerspectiveResourceName())); navTreeEditor.getSettings().setGotoPerspectiveEnabled(true); if (navTreeEditor.getNavTree() == null && navigationManager.getNavTree() != null) { navTreeEditor.edit(navigationManager.getNavTree()); } view.show(perspectiveExplorer, navTreeEditor); } ContentExplorerScreen(); @Inject  ContentExplorerScreen(View view,
                                 NavigationManager navigationManager,
                                 PerspectivesExplorer perspectiveExplorer,
                                 NavTreeEditor navTreeEditor,
                                 ContentManagerI18n i18n,
                                 Event<NotificationEvent> workbenchNotification); }
ContentExplorerScreen { @PostConstruct void init() { perspectiveExplorer.setOnExpandCommand(this::onPerspectivesExpanded); perspectiveExplorer.show(); navTreeEditor.setOnExpandCommand(this::onNavTreeExpanded); navTreeEditor.setOnSaveCommand(this::onNavTreeSaved); navTreeEditor.getSettings().setLiteralPerspective(i18n.capitalizeFirst(i18n.getPerspectiveResourceName())); navTreeEditor.getSettings().setGotoPerspectiveEnabled(true); if (navTreeEditor.getNavTree() == null && navigationManager.getNavTree() != null) { navTreeEditor.edit(navigationManager.getNavTree()); } view.show(perspectiveExplorer, navTreeEditor); } ContentExplorerScreen(); @Inject  ContentExplorerScreen(View view,
                                 NavigationManager navigationManager,
                                 PerspectivesExplorer perspectiveExplorer,
                                 NavTreeEditor navTreeEditor,
                                 ContentManagerI18n i18n,
                                 Event<NotificationEvent> workbenchNotification); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); NavTreeEditor getNavTreeEditor(); void createNewPerspective(); }
ContentExplorerScreen { @PostConstruct void init() { perspectiveExplorer.setOnExpandCommand(this::onPerspectivesExpanded); perspectiveExplorer.show(); navTreeEditor.setOnExpandCommand(this::onNavTreeExpanded); navTreeEditor.setOnSaveCommand(this::onNavTreeSaved); navTreeEditor.getSettings().setLiteralPerspective(i18n.capitalizeFirst(i18n.getPerspectiveResourceName())); navTreeEditor.getSettings().setGotoPerspectiveEnabled(true); if (navTreeEditor.getNavTree() == null && navigationManager.getNavTree() != null) { navTreeEditor.edit(navigationManager.getNavTree()); } view.show(perspectiveExplorer, navTreeEditor); } ContentExplorerScreen(); @Inject  ContentExplorerScreen(View view,
                                 NavigationManager navigationManager,
                                 PerspectivesExplorer perspectiveExplorer,
                                 NavTreeEditor navTreeEditor,
                                 ContentManagerI18n i18n,
                                 Event<NotificationEvent> workbenchNotification); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); NavTreeEditor getNavTreeEditor(); void createNewPerspective(); static final String SCREEN_ID; }