@Test public void shouldSetActivePart() { PartPresenter part = mock(PartPresenter.class); when(toolingPartStack.containsPart(part)).thenReturn(true); workBenchPresenter.setActivePart(part); verify(toolingPartStack).setActivePart(part); }
public void setActivePart(PartPresenter part) { PartStack destPartStack = findPartStackByPart(part); if (destPartStack != null) { destPartStack.setActivePart(part); } }
WorkBenchPresenter implements Presenter { public void setActivePart(PartPresenter part) { PartStack destPartStack = findPartStackByPart(part); if (destPartStack != null) { destPartStack.setActivePart(part); } } }
WorkBenchPresenter implements Presenter { public void setActivePart(PartPresenter part) { PartStack destPartStack = findPartStackByPart(part); if (destPartStack != null) { destPartStack.setActivePart(part); } } @Inject  WorkBenchPresenter(WorkBenchViewImpl view,
                              EditorPartStack editorPartStackPresenter,
                              PartStackPresenterFactory stackPresenterFactory,
                              PartStackViewFactory partViewFactory,
                              OutlinePart outlinePart,
                              ProjectExplorerPart projectExplorerPart,
                              NotificationManager notificationManager,
                              HideWidgetCallback hideWidgetCallback); }
WorkBenchPresenter implements Presenter { public void setActivePart(PartPresenter part) { PartStack destPartStack = findPartStackByPart(part); if (destPartStack != null) { destPartStack.setActivePart(part); } } @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 setActivePart(PartPresenter part) { PartStack destPartStack = findPartStackByPart(part); if (destPartStack != null) { destPartStack.setActivePart(part); } } @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);  }