@Test public void shouldNavigationContainerOpenPart() { PartPresenter part = mock(PartPresenter.class); Constraints constraints = mock(Constraints.class); workBenchPresenter.openPart(part, PartStackType.NAVIGATION, constraints); verify(navigationPartStack).addPart(part, constraints); workBenchPresenter.openPart(part, PartStackType.NAVIGATION); verify(navigationPartStack).addPart(part, null); }
public void openPart(PartPresenter part, PartStackType type) { openPart(part, type, null); }
WorkBenchPresenter implements Presenter { public void openPart(PartPresenter part, PartStackType type) { openPart(part, type, null); } }
WorkBenchPresenter implements Presenter { public void openPart(PartPresenter part, PartStackType type) { openPart(part, type, null); } @Inject  WorkBenchPresenter(WorkBenchViewImpl view,
                              EditorPartStack editorPartStackPresenter,
                              PartStackPresenterFactory stackPresenterFactory,
                              PartStackViewFactory partViewFactory,
                              OutlinePart outlinePart,
                              ProjectExplorerPart projectExplorerPart,
                              NotificationManager notificationManager,
                              HideWidgetCallback hideWidgetCallback); }
WorkBenchPresenter implements Presenter { public void openPart(PartPresenter part, PartStackType type) { openPart(part, type, null); } @Inject  WorkBenchPresenter(WorkBenchViewImpl view,
                              EditorPartStack editorPartStackPresenter,
                              PartStackPresenterFactory stackPresenterFactory,
                              PartStackViewFactory partViewFactory,
                              OutlinePart outlinePart,
                              ProjectExplorerPart projectExplorerPart,
                              NotificationManager notificationManager,
                              HideWidgetCallback hideWidgetCallback); void removePart(PartPresenter part); void hidePart(PartPresenter part); void expandEditorPart(); void restoreEditorPart(); void setActivePart(PartPresenter part); void openPart(PartPresenter part, PartStackType type); void openPart(PartPresenter part, PartStackType type, Constraints constraint); @Override void go(AcceptsOneWidget container); }
WorkBenchPresenter implements Presenter { public void openPart(PartPresenter part, PartStackType type) { openPart(part, type, null); } @Inject  WorkBenchPresenter(WorkBenchViewImpl view,
                              EditorPartStack editorPartStackPresenter,
                              PartStackPresenterFactory stackPresenterFactory,
                              PartStackViewFactory partViewFactory,
                              OutlinePart outlinePart,
                              ProjectExplorerPart projectExplorerPart,
                              NotificationManager notificationManager,
                              HideWidgetCallback hideWidgetCallback); void removePart(PartPresenter part); void hidePart(PartPresenter part); void expandEditorPart(); void restoreEditorPart(); void setActivePart(PartPresenter part); void openPart(PartPresenter part, PartStackType type); void openPart(PartPresenter part, PartStackType type, Constraints constraint); @Override void go(AcceptsOneWidget container);  }