private PerspectiveDefinition createPerspectiveDefinition() { PerspectiveDefinitionImpl perspectiveDefinition = new PerspectiveDefinitionImpl(); PanelDefinition root = perspectiveDefinition.getRoot(); partDefinitionsRoot.forEach(p -> root.addPart(p)); PanelDefinitionImpl rootChild1 = new PanelDefinitionImpl("org.uberfire.client.workbench.panels.impl.MultiTabWorkbenchPanelPresenter"); partDefinitionRootChild1.forEach(p -> rootChild1.addPart(p)); PanelDefinitionImpl rootChild2 = new PanelDefinitionImpl("org.uberfire.client.workbench.panels.impl.MultiTabWorkbenchPanelPresenter"); partDefinitionRootChild2.forEach(p -> rootChild2.addPart(p)); PanelDefinitionImpl rootChild2Child = new PanelDefinitionImpl("org.uberfire.client.workbench.panels.impl.MultiTabWorkbenchPanelPresenter"); partDefinitionRootChild2Child.forEach(p -> rootChild2Child.addPart(p)); root.insertChild(mock(Position.class), rootChild1); rootChild2.insertChild(mock(Position.class), rootChild2Child); root.insertChild(mock(Position.class), rootChild2); return perspectiveDefinition; }
private PerspectiveDefinition createPerspectiveDefinition() { PerspectiveDefinitionImpl perspectiveDefinition = new PerspectiveDefinitionImpl(); PanelDefinition root = perspectiveDefinition.getRoot(); partDefinitionsRoot.forEach(p -> root.addPart(p)); PanelDefinitionImpl rootChild1 = new PanelDefinitionImpl("org.uberfire.client.workbench.panels.impl.MultiTabWorkbenchPanelPresenter"); partDefinitionRootChild1.forEach(p -> rootChild1.addPart(p)); PanelDefinitionImpl rootChild2 = new PanelDefinitionImpl("org.uberfire.client.workbench.panels.impl.MultiTabWorkbenchPanelPresenter"); partDefinitionRootChild2.forEach(p -> rootChild2.addPart(p)); PanelDefinitionImpl rootChild2Child = new PanelDefinitionImpl("org.uberfire.client.workbench.panels.impl.MultiTabWorkbenchPanelPresenter"); partDefinitionRootChild2Child.forEach(p -> rootChild2Child.addPart(p)); root.insertChild(mock(Position.class), rootChild1); rootChild2.insertChild(mock(Position.class), rootChild2Child); root.insertChild(mock(Position.class), rootChild2); return perspectiveDefinition; }