@Override public void show() { errorSetup(); newNameTextBoxSetup(); modal.show(); }
@Override public void init(CopyPopUpPresenter presenter) { this.presenter = presenter; modalSetup(); setupComment(); }
private ModalFooter footer() { GenericModalFooter footer = new GenericModalFooter(); footer.addButton(translate(Constants.CopyPopUpView_Cancel), cancelCommand(), ButtonType.DEFAULT); footer.addButton(translate(Constants.CopyPopUpView_MakeACopy), copyCommand(), ButtonType.PRIMARY); return footer; }
private void setupComment() { body.appendChild(toggleCommentPresenter().getViewElement()); }
@Test public void testDuplicateCommand() { doNothing().when(projectScreenService).copy(any(), any()); final CopyPopUpView copyPopUpView = mock(CopyPopUpView.class); doReturn(copyPopUpView).when(copyPopUpPresenter).getView(); this.presenter.getDuplicateCommand().execute(new FileNameAndCommitMessage("newFileName", "commitMessage")); verify(copyPopUpView).hide(); verify(view).showBusyIndicator(anyString()); verify(projectScreenService).copy(presenter.workspaceProject, "newFileName"); verify(view).hideBusyIndicator(); verify(notificationEvent).fire(any()); verify(promises).resolve(); }
private ModalFooter footer() { GenericModalFooter footer = new GenericModalFooter(); footer.addButton(translate(Constants.CopyPopUpView_Cancel), cancelCommand(), ButtonType.DEFAULT); footer.addButton(translate(Constants.CopyPopUpView_MakeACopy), copyCommand(), ButtonType.PRIMARY); return footer; }
private void setupComment() { body.appendChild(toggleCommentPresenter().getViewElement()); }
@Override public void show() { errorSetup(); newNameTextBoxSetup(); modal.show(); }
@Override public void init(CopyPopUpPresenter presenter) { this.presenter = presenter; modalSetup(); setupComment(); }