Search in sources :

Example 1 with CvsRootException

use of com.intellij.cvsSupport2.connections.CvsRootException 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)

Example 2 with CvsRootException

use of com.intellij.cvsSupport2.connections.CvsRootException in project intellij-community by JetBrains.

the class Cvs2SettingsEditPanel method testConfiguration.

private void testConfiguration() {
    final CvsRootConfiguration newConfiguration = createConfigurationWithCurrentSettings();
    if (newConfiguration == null)
        return;
    try {
        testConnection(newConfiguration, myPanel, myProject);
    } catch (CvsRootException e) {
        e.show();
        return;
    }
    updateFrom(newConfiguration);
}
Also used : CvsRootConfiguration(com.intellij.cvsSupport2.config.CvsRootConfiguration)

Aggregations

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