use of org.eclipse.che.ide.api.parts.PartStackView in project che by eclipse.
the class AbstractPerspectivePersistenceTest method setUp.
@Before
public void setUp() throws Exception {
when(view.getLeftPanel()).thenReturn(panel);
when(view.getRightPanel()).thenReturn(panel);
when(view.getBottomPanel()).thenReturn(panel);
when(view.getSplitPanel()).thenReturn(layoutPanel);
when(view.getNavigationPanel()).thenReturn(simplePanel);
when(view.getInformationPanel()).thenReturn(simpleLayoutPanel);
when(view.getToolPanel()).thenReturn(simplePanel);
when(controllerFactory.createController(Matchers.<SplitLayoutPanel>anyObject(), Matchers.<SimplePanel>anyObject())).thenReturn(workBenchController);
when(partStackViewFactory.create(Matchers.<PartStackView.TabPosition>anyObject(), Matchers.<FlowPanel>anyObject())).thenReturn(partStackView);
when(stackPresenterFactory.create(Matchers.<PartStackView>anyObject(), Matchers.<WorkBenchPartController>anyObject())).thenReturn(partStackPresenter);
perspective = new AbstractPerspectiveTest.DummyPerspective(view, stackPresenterFactory, partStackViewFactory, controllerFactory, eventBus, null, partStackPresenter, dynaProvider);
perspective.onActivePartChanged(new ActivePartChangedEvent(activePart));
}
Aggregations