@Test public void testNewPerspectiveEnabled() { navTreeEditor.getSettings().setNewPerspectiveEnabled(true); assertTrue(navTreeEditor.getSettings().isNewPerspectiveEnabled(NAV_TREE.getItemById("level1b"))); navTreeEditor.setNewPerspectiveEnabled("level1b", false); assertFalse(navTreeEditor.getSettings().isNewPerspectiveEnabled(NAV_TREE.getItemById("level1b"))); assertTrue(navTreeEditor.getSettings().isNewPerspectiveEnabled(NAV_TREE.getItemById("level2b"))); navTreeEditor.setNewPerspectiveEnabled("level1b", false).applyToAllChildren(); assertFalse(navTreeEditor.getSettings().isNewPerspectiveEnabled(NAV_TREE.getItemById("level1b"))); assertFalse(navTreeEditor.getSettings().isNewPerspectiveEnabled(NAV_TREE.getItemById("level2b"))); }
public NavItemEditorSettings.Flags setNewPerspectiveEnabled(String navItemId, boolean enabled) { return getSettings().setNewPerspectiveEnabled(navItemId, enabled); }
NavTreeEditor extends NavItemEditor { public NavItemEditorSettings.Flags setNewPerspectiveEnabled(String navItemId, boolean enabled) { return getSettings().setNewPerspectiveEnabled(navItemId, enabled); } }
NavTreeEditor extends NavItemEditor { public NavItemEditorSettings.Flags setNewPerspectiveEnabled(String navItemId, boolean enabled) { return getSettings().setNewPerspectiveEnabled(navItemId, enabled); } @Inject  NavTreeEditor(NavTreeEditorView view,
                         NavigationManager navigationManager,
                         SyncBeanManager beanManager,
                         PlaceManager placeManager,
                         PerspectiveTreeProvider perspectiveTreeProvider,
                         TargetPerspectiveEditor targetPerspectiveEditor,
                         PerspectivePluginManager perspectivePluginManager,
                         Event<NavItemEditStartedEvent> navItemEditStartedEvent,
                         Event<NavItemEditCancelledEvent> navItemEditCancelledEvent); }
NavTreeEditor extends NavItemEditor { public NavItemEditorSettings.Flags setNewPerspectiveEnabled(String navItemId, boolean enabled) { return getSettings().setNewPerspectiveEnabled(navItemId, enabled); } @Inject  NavTreeEditor(NavTreeEditorView view,
                         NavigationManager navigationManager,
                         SyncBeanManager beanManager,
                         PlaceManager placeManager,
                         PerspectiveTreeProvider perspectiveTreeProvider,
                         TargetPerspectiveEditor targetPerspectiveEditor,
                         PerspectivePluginManager perspectivePluginManager,
                         Event<NavItemEditStartedEvent> navItemEditStartedEvent,
                         Event<NavItemEditCancelledEvent> navItemEditCancelledEvent); void setOnSaveCommand(Command onSaveCommand); @Override String getGroupLiteral(); void setMaximized(boolean maximized); NavTree getNavTree(); void edit(NavTree navTree); NavItemEditorSettings setMaxLevels(String navItemId, int maxLevels); NavItemEditorSettings.Flags setNewGroupEnabled(String navItemId, boolean enabled); NavItemEditorSettings.Flags setNewPerspectiveEnabled(String navItemId, boolean enabled); NavItemEditorSettings.Flags setNewDividerEnabled(String navItemId, boolean enabled); NavItemEditorSettings.Flags setOnlyRuntimePerspectives(String navItemId, boolean enabled); NavItemEditorSettings.Flags setPerspectiveContextEnabled(String navItemId, boolean enabled); }
NavTreeEditor extends NavItemEditor { public NavItemEditorSettings.Flags setNewPerspectiveEnabled(String navItemId, boolean enabled) { return getSettings().setNewPerspectiveEnabled(navItemId, enabled); } @Inject  NavTreeEditor(NavTreeEditorView view,
                         NavigationManager navigationManager,
                         SyncBeanManager beanManager,
                         PlaceManager placeManager,
                         PerspectiveTreeProvider perspectiveTreeProvider,
                         TargetPerspectiveEditor targetPerspectiveEditor,
                         PerspectivePluginManager perspectivePluginManager,
                         Event<NavItemEditStartedEvent> navItemEditStartedEvent,
                         Event<NavItemEditCancelledEvent> navItemEditCancelledEvent); void setOnSaveCommand(Command onSaveCommand); @Override String getGroupLiteral(); void setMaximized(boolean maximized); NavTree getNavTree(); void edit(NavTree navTree); NavItemEditorSettings setMaxLevels(String navItemId, int maxLevels); NavItemEditorSettings.Flags setNewGroupEnabled(String navItemId, boolean enabled); NavItemEditorSettings.Flags setNewPerspectiveEnabled(String navItemId, boolean enabled); NavItemEditorSettings.Flags setNewDividerEnabled(String navItemId, boolean enabled); NavItemEditorSettings.Flags setOnlyRuntimePerspectives(String navItemId, boolean enabled); NavItemEditorSettings.Flags setPerspectiveContextEnabled(String navItemId, boolean enabled); static final NavigationConstants i18n; static final String ROOT_GROUP_ID; }