Examples of cancel()


Examples of org.eclipse.egit.ui.common.CommitDialogTester.cancel()

    commitDialogTester.sortByName();
    // Sort descending (now the sort order should be reversed)
    commitDialogTester.sortByName();
    assertEquals(PROJ1 + "/b", commitDialogTester.getEntryText(0));
    assertEquals(PROJ1 + "/a", commitDialogTester.getEntryText(1));
    commitDialogTester.cancel();
    fileA.delete(false, null);
    fileB.delete(false, null);
  }
}
View Full Code Here

Examples of org.eclipse.egit.ui.common.RepoRemoteBranchesPage.cancel()

    remoteBranches.assertErrorMessage(NLS.bind(
        UIText.SourceBranchPage_CompositeTransportErrorMessage,
        "Exception caught during execution of ls-remote command",
        "git://no.example.com/EGIT: unknown host"));
    remoteBranches.assertCannotProceed();
    remoteBranches.cancel();
  }

  // TODO network timeouts seem to be longer on cental EGit build
  // Test is ignored to fix the build
  @Ignore
View Full Code Here

Examples of org.eclipse.egit.ui.internal.push.PushTagsWizardTester.cancel()

    ContextMenuHelper.clickContextMenu(tree,
        myUtil.getPluginLocalizedValue("RepoViewPushTag.label"));

    PushTagsWizardTester tester = PushTagsWizardTester.forShell();
    tester.assertTagChecked("tag-to-push");
    tester.cancel();
  }

  private String getCommitIdOfTag(String tagName) throws Exception {
    return revWalk.parseTag(repository.resolve(tagName)).getObject()
        .getId().name();
View Full Code Here

Examples of org.fenixedu.academic.domain.QueueJob.cancel()

    }

    public ActionForward cancelQueueJob(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        QueueJob job = getDomainObject(request, "queueJobId");
        job.cancel();

        return listReports(mapping, form, request, response);
    }

}
View Full Code Here

Examples of org.fenixedu.academic.domain.accounting.events.dfa.DFACandidacyEvent.cancel()

    public void cancelEvents() {
        for (Event event : getPerson().getEventsByEventType(EventType.CANDIDACY_ENROLMENT)) {
            DFACandidacyEvent candidacyEvent = (DFACandidacyEvent) event;
            if (candidacyEvent.getCandidacy() == this) {
                candidacyEvent.cancel(AccessControl.getPerson());
            }
        }
    }

    @Override
View Full Code Here

Examples of org.fenixedu.academic.domain.accounting.paymentCodes.AccountingEventPaymentCode.cancel()

            new CancelledCandidacySituation(this, this.getPerson());

            for (PaymentCode paymentCode : getAvailablePaymentCodesSet()) {
                AccountingEventPaymentCode accountingEventPaymentCode = (AccountingEventPaymentCode) paymentCode;
                if (accountingEventPaymentCode.isNew() && accountingEventPaymentCode.getAccountingEvent() == null) {
                    accountingEventPaymentCode.cancel();
                }
            }

            return true;
        }
View Full Code Here

Examples of org.fenixedu.academic.domain.accounting.report.events.EventReportQueueJob.cancel()

    public ActionForward cancelReportRequest(final ActionMapping mapping, final ActionForm form,
            final HttpServletRequest request, final HttpServletResponse response) {
        EventReportQueueJob job = readEventReportQueueJob(request);

        try {
            job.cancel();
        } catch (DomainException e) {
            addActionMessage("error", request, e.getKey(), e.getArgs());
            return listReports(mapping, form, request, response);
        }
View Full Code Here

Examples of org.fenixedu.academic.domain.candidacyProcess.erasmus.reports.ErasmusCandidacyProcessReport.cancel()

    public ActionForward cancelJob(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        ErasmusCandidacyProcessReport report = readErasmusCandidacyProcessReport(request);

        report.cancel();
        return list(mapping, form, request, response);
    }

    private MobilityApplicationProcess readErasmusCandidacyProcess(final HttpServletRequest request) {
        return getDomainObject(request, "erasmusCandidacyProcessId");
View Full Code Here

Examples of org.fenixedu.academic.domain.serviceRequests.AcademicServiceRequest.cancel()

            HttpServletResponse response) throws FenixServiceException {

        final AcademicServiceRequest academicServiceRequest = getAndSetAcademicServiceRequest(request);
        final String justification = ((DynaActionForm) actionForm).getString("justification");
        try {
            academicServiceRequest.cancel(justification);
        } catch (DomainExceptionWithLabelFormatter ex) {
            addActionMessage(request, ex.getKey(), solveLabelFormatterArgs(request, ex.getLabelFormatterArgs()));
            return mapping.findForward("prepareCancelAcademicServiceRequest");
        } catch (DomainException ex) {
            addActionMessage(request, ex.getKey());
View Full Code Here

Examples of org.fenixedu.academic.domain.serviceRequests.RegistrationAcademicServiceRequest.cancel()

        final RegistrationAcademicServiceRequest academicServiceRequest = getAndSetAcademicServiceRequest(request);
        final String justification = ((AcademicServiceRequestsManagementForm) actionForm).getJustification();

        try {
            academicServiceRequest.cancel(justification);
        } catch (DomainExceptionWithLabelFormatter ex) {
            addActionMessage(request, ex.getKey(), solveLabelFormatterArgs(request, ex.getLabelFormatterArgs()));
            return mapping.findForward("prepareCancelAcademicServiceRequest");
        } catch (DomainException ex) {
            addActionMessage(request, ex.getKey());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.