Search in sources :

Example 1 with LoginPerformer

use of com.intellij.cvsSupport2.cvsoperations.common.LoginPerformer in project intellij-community by JetBrains.

the class SelectCvsElementStep method isLogged.

private boolean isLogged(final CvsRootConfiguration selectedConfiguration) {
    myErrors.set(null);
    final LoginPerformer performer = new LoginPerformer(myProject, Collections.<CvsEnvironment>singletonList(selectedConfiguration), e -> myErrors.set(Boolean.TRUE));
    try {
        final boolean logged = performer.loginAll(false);
        return logged && myErrors.isNull();
    } catch (CvsRootException e) {
        Messages.showErrorDialog(e.getMessage(), CvsBundle.message("error.title.invalid.cvs.root"));
        return false;
    }
}
Also used : LoginPerformer(com.intellij.cvsSupport2.cvsoperations.common.LoginPerformer) CvsRootException(com.intellij.cvsSupport2.connections.CvsRootException)

Aggregations

CvsRootException (com.intellij.cvsSupport2.connections.CvsRootException)1 LoginPerformer (com.intellij.cvsSupport2.cvsoperations.common.LoginPerformer)1