@Test public void addTabWhichIsAlreadyExistTest() { presenter.addPart(part1); presenter.addPart(part2); reset(partStackEventHandler); reset(view); reset(part1); presenter.addPart(part1); assertTrue(presenter.getNumberOfParts() == 2); verify(view).setActiveTab(eq(0)); verify(partStackEventHandler, times(1)).onRequestFocus(presenter); verify(part1, never()).addPropertyListener(any(PropertyListener.class)); verify(view, never()).addTab(svgImage, partTitle1, toolTip1, null, true); verify(part1, never()).go(any(AcceptsOneWidget.class)); assertEquals(presenter.getActivePart(), part1); }
@Override public void addPart(PartPresenter part, Constraints constraint) { addPart(part); }
EditorPartStackPresenter extends PartStackPresenter implements EditorPartStack, ShowListButtonClickHandler { @Override public void addPart(PartPresenter part, Constraints constraint) { addPart(part); } }
EditorPartStackPresenter extends PartStackPresenter implements EditorPartStack, ShowListButtonClickHandler { @Override public void addPart(PartPresenter part, Constraints constraint) { addPart(part); } @Inject  EditorPartStackPresenter(final EditorPartStackView view, EventBus eventBus,
                                    PartStackEventHandler partStackEventHandler, ListOpenedFilesPresenter listOpenedFilesPresenter); }
EditorPartStackPresenter extends PartStackPresenter implements EditorPartStack, ShowListButtonClickHandler { @Override public void addPart(PartPresenter part, Constraints constraint) { addPart(part); } @Inject  EditorPartStackPresenter(final EditorPartStackView view, EventBus eventBus,
                                    PartStackEventHandler partStackEventHandler, ListOpenedFilesPresenter listOpenedFilesPresenter); @Override void addPart(PartPresenter part, Constraints constraint); @Override void addPart(PartPresenter part); @Override void setActivePart(PartPresenter part); @Override void onShowListClicked(int x, int y, AsyncCallback<Void> callback); }
EditorPartStackPresenter extends PartStackPresenter implements EditorPartStack, ShowListButtonClickHandler { @Override public void addPart(PartPresenter part, Constraints constraint) { addPart(part); } @Inject  EditorPartStackPresenter(final EditorPartStackView view, EventBus eventBus,
                                    PartStackEventHandler partStackEventHandler, ListOpenedFilesPresenter listOpenedFilesPresenter); @Override void addPart(PartPresenter part, Constraints constraint); @Override void addPart(PartPresenter part); @Override void setActivePart(PartPresenter part); @Override void onShowListClicked(int x, int y, AsyncCallback<Void> callback);  }