Search in sources :

Example 1 with TimeAmount

use of org.kie.workbench.common.workbench.client.error.TimeAmount in project kie-wb-common by kiegroup.

the class GenericErrorPopup method onContinueButtonClicked.

@EventHandler("continue-button")
public void onContinueButtonClicked(final ClickEvent event) {
    console.error(errorDetails.textContent);
    if (doNotShowAgainCheckbox.checked) {
        final TimeAmount duration = TimeAmount.valueOf(timeSelect.value);
        genericErrorTimeController.setTimeout(duration);
    }
    close();
}
Also used : TimeAmount(org.kie.workbench.common.workbench.client.error.TimeAmount) EventHandler(org.jboss.errai.ui.shared.api.annotations.EventHandler)

Aggregations

EventHandler (org.jboss.errai.ui.shared.api.annotations.EventHandler)1 TimeAmount (org.kie.workbench.common.workbench.client.error.TimeAmount)1