private PerspectiveDefinition buildPerspective() { final PerspectiveDefinitionImpl perspective = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName()); perspective.setName(BpmnEditorConstants.INSTANCE.bpmnPerspectiveTitle()); final PanelDefinition west = new PanelDefinitionImpl(SimpleWorkbenchPanelPresenter.class.getName()); west.setWidth(300); west.setMinWidth(200); west.addPart(new PartDefinitionImpl(new DefaultPlaceRequest("BPMN Explorer"))); perspective.getRoot().insertChild(CompassPosition.WEST, west); return perspective; } }
private PerspectiveDefinition buildPerspective() { final PerspectiveDefinitionImpl perspective = new PerspectiveDefinitionImpl(MultiListWorkbenchPanelPresenter.class.getName()); perspective.setName(BpmnEditorConstants.INSTANCE.bpmnPerspectiveTitle()); final PanelDefinition west = new PanelDefinitionImpl(SimpleWorkbenchPanelPresenter.class.getName()); west.setWidth(300); west.setMinWidth(200); west.addPart(new PartDefinitionImpl(new DefaultPlaceRequest("BPMN Explorer"))); perspective.getRoot().insertChild(CompassPosition.WEST, west); return perspective; } }
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; }