@Test public void shouldAddToStack() { PartPresenter part = mock(PartPresenter.class); presenter.openPart(part, TYPE, CONSTRAINT); verify(activePerspective).openPart(eq(part), eq(TYPE), eq(CONSTRAINT)); }
@Override public void openPart(PartPresenter part, PartStackType type) { openPart(part, type, null); }
WorkspacePresenter implements Presenter, WorkspaceView.ActionDelegate, WorkspaceAgent { @Override public void openPart(PartPresenter part, PartStackType type) { openPart(part, type, null); } }
WorkspacePresenter implements Presenter, WorkspaceView.ActionDelegate, WorkspaceAgent { @Override public void openPart(PartPresenter part, PartStackType type) { openPart(part, type, null); } @Inject protected  WorkspacePresenter(WorkspaceView view,
                                 MainMenuPresenter mainMenu,
                                 StatusPanelGroupPresenter bottomMenu,
                                 @MainToolbar ToolbarPresenter toolbarPresenter,
                                 Provider<WorkBenchPresenter> genericPerspectiveProvider); }
WorkspacePresenter implements Presenter, WorkspaceView.ActionDelegate, WorkspaceAgent { @Override public void openPart(PartPresenter part, PartStackType type) { openPart(part, type, null); } @Inject protected  WorkspacePresenter(WorkspaceView view,
                                 MainMenuPresenter mainMenu,
                                 StatusPanelGroupPresenter bottomMenu,
                                 @MainToolbar ToolbarPresenter toolbarPresenter,
                                 Provider<WorkBenchPresenter> genericPerspectiveProvider); @Override void go(AcceptsOneWidget container); @Override void setActivePart(PartPresenter part); @Override void openPart(PartPresenter part, PartStackType type); @Override void openPart(PartPresenter part, PartStackType type, Constraints constraint); @Override void hidePart(PartPresenter part); @Override void removePart(PartPresenter part); PartStack getPartStack(PartStackType type); @Override void onUpdateClicked(); void setUpdateButtonVisibility(boolean visible); void setStatusPanelVisible(boolean visible); }
WorkspacePresenter implements Presenter, WorkspaceView.ActionDelegate, WorkspaceAgent { @Override public void openPart(PartPresenter part, PartStackType type) { openPart(part, type, null); } @Inject protected  WorkspacePresenter(WorkspaceView view,
                                 MainMenuPresenter mainMenu,
                                 StatusPanelGroupPresenter bottomMenu,
                                 @MainToolbar ToolbarPresenter toolbarPresenter,
                                 Provider<WorkBenchPresenter> genericPerspectiveProvider); @Override void go(AcceptsOneWidget container); @Override void setActivePart(PartPresenter part); @Override void openPart(PartPresenter part, PartStackType type); @Override void openPart(PartPresenter part, PartStackType type, Constraints constraint); @Override void hidePart(PartPresenter part); @Override void removePart(PartPresenter part); PartStack getPartStack(PartStackType type); @Override void onUpdateClicked(); void setUpdateButtonVisibility(boolean visible); void setStatusPanelVisible(boolean visible);  }