Search in sources :

Example 1 with PartStackView

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));
}
Also used : ActivePartChangedEvent(org.eclipse.che.ide.api.event.ActivePartChangedEvent) PartStackView(org.eclipse.che.ide.api.parts.PartStackView) Before(org.junit.Before)

Aggregations

ActivePartChangedEvent (org.eclipse.che.ide.api.event.ActivePartChangedEvent)1 PartStackView (org.eclipse.che.ide.api.parts.PartStackView)1 Before (org.junit.Before)1