Search in sources :

Example 1 with StepikAuthState

use of org.stepik.core.stepik.StepikAuthState in project intellij-plugins by StepicOrg.

the class JavaWizardStep method validate.

@Override
public boolean validate() throws ConfigurationException {
    StepikAuthState authenticated = authentication(true);
    if (authenticated != AUTH) {
        throw new ConfigurationException("Please, you should login", "Error");
    }
    valid = panel.validate();
    return valid;
}
Also used : StepikAuthState(org.stepik.core.stepik.StepikAuthState) ConfigurationException(com.intellij.openapi.options.ConfigurationException)

Aggregations

ConfigurationException (com.intellij.openapi.options.ConfigurationException)1 StepikAuthState (org.stepik.core.stepik.StepikAuthState)1